Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8615af4 authored by Suresh Siddha's avatar Suresh Siddha Committed by H. Peter Anvin
Browse files

x86, fpu: remove cpu_has_xmm check in the fx_finit()



CPUs with FXSAVE but no XMM/MXCSR (Pentium II from Intel,
Crusoe/TM-3xxx/5xxx from Transmeta, and presumably some of the K6
generation from AMD) ever looked at the mxcsr field during
fxrstor/fxsave. So remove the cpu_has_xmm check in the fx_finit()

Reported-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1347300665-6209-6-git-send-email-suresh.b.siddha@intel.com


Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent e0022981
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -109,7 +109,6 @@ static inline void fx_finit(struct i387_fxsave_struct *fx)
{
{
	memset(fx, 0, xstate_size);
	memset(fx, 0, xstate_size);
	fx->cwd = 0x37f;
	fx->cwd = 0x37f;
	if (cpu_has_xmm)
	fx->mxcsr = MXCSR_DEFAULT;
	fx->mxcsr = MXCSR_DEFAULT;
}
}