mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 01:05:36 +00:00
target/i386: set SSE FTZ in correct floating-point state
The code to set floating-point state when MXCSR changes calls set_flush_to_zero on &env->fp_status, so affecting the x87 floating-point state rather than the SSE state. Fix to call it for &env->sse_status instead. Backports commit 3ddc0eca2229846bfecc3485648a6cb85a466dc7 from qemu
This commit is contained in:
parent
c15ddf11dd
commit
fd5b0dd456
|
@ -2928,7 +2928,7 @@ void update_mxcsr_status(CPUX86State *env)
|
|||
set_flush_inputs_to_zero((mxcsr & SSE_DAZ) ? 1 : 0, &env->sse_status);
|
||||
|
||||
/* set flush to zero */
|
||||
set_flush_to_zero((mxcsr & SSE_FZ) ? 1 : 0, &env->fp_status);
|
||||
set_flush_to_zero((mxcsr & SSE_FZ) ? 1 : 0, &env->sse_status);
|
||||
}
|
||||
|
||||
void helper_ldmxcsr(CPUX86State *env, uint32_t val)
|
||||
|
|
Loading…
Reference in a new issue