aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:31:05 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:31:05 +0000
commite19d721cb1b3e98659ed9843b3116b13c77f132e (patch)
tree5d1382c5bdafbeb6b72dae49b5f3ddf27c1bfc5c /target
parentf69da79196ab586a7cacbeecb6809ffa8d8e258c (diff)
downloadqemu-e19d721cb1b3e98659ed9843b3116b13c77f132e.zip
qemu-e19d721cb1b3e98659ed9843b3116b13c77f132e.tar.gz
qemu-e19d721cb1b3e98659ed9843b3116b13c77f132e.tar.bz2
target/hppa: Set default NaN pattern explicitly
Set the default NaN pattern explicitly, and remove the ifdef from parts64_default_nan(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-39-peter.maydell@linaro.org
Diffstat (limited to 'target')
-rw-r--r--target/hppa/fpu_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/hppa/fpu_helper.c b/target/hppa/fpu_helper.c
index 69c4ce3..239c027 100644
--- a/target/hppa/fpu_helper.c
+++ b/target/hppa/fpu_helper.c
@@ -65,6 +65,8 @@ void HELPER(loaded_fr0)(CPUHPPAState *env)
set_float_3nan_prop_rule(float_3nan_prop_abc, &env->fp_status);
/* For inf * 0 + NaN, return the input NaN */
set_float_infzeronan_rule(float_infzeronan_dnan_never, &env->fp_status);
+ /* Default NaN: sign bit clear, msb-1 frac bit set */
+ set_float_default_nan_pattern(0b00100000, &env->fp_status);
}
void cpu_hppa_loaded_fr0(CPUHPPAState *env)