Clear invalid bits only if CPU supports SSE, otherwise, some fields in

struct save87 will be cleared unexpectly.
This commit is contained in:
David Xu 2006-05-31 00:17:29 +00:00
parent 1dbb640331
commit f1c313bff2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159089

View file

@ -2711,6 +2711,7 @@ set_fpcontext(struct thread *td, const mcontext_t *mcp)
}
#ifdef DEV_NPX
#ifdef CPU_ENABLE_SSE
if (cpu_fxsr)
addr->sv_xmm.sv_env.en_mxcsr &= cpu_mxcsr_mask;
#endif
/*