diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2024-12-11 15:31:07 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-12-11 15:31:07 +0000 |
commit | 031af9cd9bc750a9d2f7c96535f87c86ffe80a0d (patch) | |
tree | 8fcbc915f140b60001ebf78a87fa54992fd4878d | |
parent | bfff809d711a9d3b2ae290b0a27063fe15ec4591 (diff) | |
download | qemu-031af9cd9bc750a9d2f7c96535f87c86ffe80a0d.zip qemu-031af9cd9bc750a9d2f7c96535f87c86ffe80a0d.tar.gz qemu-031af9cd9bc750a9d2f7c96535f87c86ffe80a0d.tar.bz2 |
target/rx: Set default NaN pattern explicitly
Set the default NaN pattern explicitly for rx.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241202131347.498124-48-peter.maydell@linaro.org
-rw-r--r-- | target/rx/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 65a74ce..69ec0bc 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -100,6 +100,8 @@ static void rx_cpu_reset_hold(Object *obj, ResetType type) * then prefer dest over source", which is float_2nan_prop_s_ab. */ set_float_2nan_prop_rule(float_2nan_prop_x87, &env->fp_status); + /* Default NaN value: sign bit clear, set frac msb */ + set_float_default_nan_pattern(0b01000000, &env->fp_status); } static ObjectClass *rx_cpu_class_by_name(const char *cpu_model) |