aboutsummaryrefslogtreecommitdiff
path: root/target/s390x
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:30:54 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:30:54 +0000
commite494fe4909fd0e0d61b32af7a86050191187b60d (patch)
treec1cd7a2c5b8da9b4b272e5088c3d4dc4037d417e /target/s390x
parentf7892f9c0094c911e5f3ad03072130caf9a1db52 (diff)
downloadqemu-e494fe4909fd0e0d61b32af7a86050191187b60d.zip
qemu-e494fe4909fd0e0d61b32af7a86050191187b60d.tar.gz
qemu-e494fe4909fd0e0d61b32af7a86050191187b60d.tar.bz2
target/s390: Set FloatInfZeroNaNRule explicitly
Set the FloatInfZeroNaNRule explicitly for s390, 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-7-peter.maydell@linaro.org
Diffstat (limited to 'target/s390x')
-rw-r--r--target/s390x/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index 514c70f..d5941b5 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -206,6 +206,8 @@ static void s390_cpu_reset_hold(Object *obj, ResetType type)
set_float_detect_tininess(float_tininess_before_rounding,
&env->fpu_status);
set_float_2nan_prop_rule(float_2nan_prop_s_ab, &env->fpu_status);
+ set_float_infzeronan_rule(float_infzeronan_dnan_always,
+ &env->fpu_status);
/* fall through */
case RESET_TYPE_S390_CPU_NORMAL:
env->psw.mask &= ~PSW_MASK_RI;