]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/mips: Explicitly set 2-NaN propagation rule
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:53 +0000 (10:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:53 +0000 (10:09 +0000)
commit0c587f13397a306f7ad4f8b0b7cb9184488012b5
treea3cd06c572e82c828fcbcca8764a9a63fa216b4e
parentd1ff996788a41280e2e0213b9571afeca4d6ca90
target/mips: Explicitly set 2-NaN propagation rule

Set the 2-NaN propagation rule explicitly in the float_status words
we use.

For active_fpu.fp_status, we do this in a new fp_reset() function
which mirrors the existing msa_reset() function in doing "first call
restore to set the fp status parts that depend on CPU state, then set
the fp status parts that are constant".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20241025141254.2141506-5-peter.maydell@linaro.org
fpu/softfloat-specialize.c.inc
target/mips/cpu.c
target/mips/fpu_helper.h
target/mips/msa.c