]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386: Set 2-NaN propagation rule explicitly
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:56 +0000 (10:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:56 +0000 (10:09 +0000)
commit62d39b28ef4e7ad41a3ef3e37037615de6dfc194
treeb20941dc26b219d2353b90243bce8e1a2ced56e5
parent8d988eb44cd2723a6bd31a2895bdaba48524b6e0
target/i386: Set 2-NaN propagation rule explicitly

Set the NaN propagation rule explicitly for the float_status words
used in the x86 target.

This is a no-behaviour-change commit, so we retain the existing
behaviour of using the x87-style "prefer QNaN over SNaN, then prefer
the NaN with the larger significand" for MMX and SSE.  This is
however not the documented hardware behaviour, so we leave a TODO
note about what we should be doing instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241025141254.2141506-16-peter.maydell@linaro.org
fpu/softfloat-specialize.c.inc
target/i386/cpu.c
target/i386/cpu.h
target/i386/tcg/fpu_helper.c