]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: Wire up MXCSR.DE and FPUS.DE correctly
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 19 May 2025 14:51:13 +0000 (15:51 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Jun 2025 12:32:55 +0000 (14:32 +0200)
commit57df511180ae015c4f6fac2a8260649a79e8ead9
tree11819581458a6c875d42ca7a00dd37e2b533ca3a
parent397ef415cad11c91318b512ecfaa27679ea7e351
target/i386: Wire up MXCSR.DE and FPUS.DE correctly

The x86 DE bit in the FPU and MXCSR status is supposed to be set
when an input denormal is consumed. We didn't previously report
this from softfloat, so the x86 code either simply didn't set
the DE bit or else incorrectly wired it up to denormal_flushed,
depending on which register you looked at.

Now we have input_denormal_used we can wire up these DE bits
with the semantics they are supposed to have.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/20250519145114.2786534-4-peter.maydell@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/fpu_helper.c