diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2024-12-11 15:30:55 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-12-11 15:30:55 +0000 |
commit | 9a31b8d0ad86e12920e01bd4c01516be9f75337e (patch) | |
tree | 4bfa38e30d05d7e64b821c309868dfa1be72af69 /target/sparc | |
parent | a71492f7267490e3cc238fa00662d29a0762fd3a (diff) | |
download | qemu-9a31b8d0ad86e12920e01bd4c01516be9f75337e.zip qemu-9a31b8d0ad86e12920e01bd4c01516be9f75337e.tar.gz qemu-9a31b8d0ad86e12920e01bd4c01516be9f75337e.tar.bz2 |
target/sparc: Set FloatInfZeroNaNRule explicitly
Set the FloatInfZeroNaNRule explicitly for the SPARC target,
so we can remove the ifdef from pickNaNMulAdd().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241202131347.498124-10-peter.maydell@linaro.org
Diffstat (limited to 'target/sparc')
-rw-r--r-- | target/sparc/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index dd7af86..61f2d3f 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -814,6 +814,8 @@ static void sparc_cpu_realizefn(DeviceState *dev, Error **errp) * the CPU state struct so it won't get zeroed on reset. */ set_float_2nan_prop_rule(float_2nan_prop_s_ba, &env->fp_status); + /* For inf * 0 + NaN, return the input NaN */ + set_float_infzeronan_rule(float_infzeronan_dnan_never, &env->fp_status); cpu_exec_realizefn(cs, &local_err); if (local_err != NULL) { |