mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 00:04:58 +00:00
Clear invalid bits only if CPU supports SSE, otherwise, some fields in
struct save87 will be cleared unexpectly.
This commit is contained in:
parent
1dbb640331
commit
f1c313bff2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159089
|
@ -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
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue