mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
target-i386: fix SSE rounding and flush to zero
SSE rounding and flush to zero control has never been implemented. However given that softfloat-native was using a single state for FPU and SSE and given that glibc is setting both FPU and SSE state in fesetround(), this was working correctly up to the switch to softfloat. Fix that by adding an update_sse_status() function similar to update_fpu_status(), and callin git on write to mxcsr. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
170d5b4bb9
commit
2355c16e74
3 changed files with 56 additions and 11 deletions
|
@ -197,6 +197,7 @@ DEF_HELPER_2(lzcnt, tl, tl, int)
|
|||
|
||||
/* MMX/SSE */
|
||||
|
||||
DEF_HELPER_1(ldmxcsr, void, i32)
|
||||
DEF_HELPER_0(enter_mmx, void)
|
||||
DEF_HELPER_0(emms, void)
|
||||
DEF_HELPER_2(movq, void, ptr, ptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue