aboutsummaryrefslogtreecommitdiff
path: root/include/gdbstub/commands.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:30:59 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:30:59 +0000
commit04b6a3e47185135f443d4b98d4910ad26abbcd67 (patch)
treec27b1820bcb3c30f9960314fdc3926856f6d5710 /include/gdbstub/commands.h
parentdc416d6ca74d43f3aa1bd304d241b9a11d86e184 (diff)
downloadqemu-04b6a3e47185135f443d4b98d4910ad26abbcd67.zip
qemu-04b6a3e47185135f443d4b98d4910ad26abbcd67.tar.gz
qemu-04b6a3e47185135f443d4b98d4910ad26abbcd67.tar.bz2
target/m68k: Don't pass NULL float_status to floatx80_default_nan()
Currently m68k_cpu_reset_hold() calls floatx80_default_nan(NULL) to get the NaN bit pattern to reset the FPU registers. This works because it happens that our implementation of floatx80_default_nan() doesn't actually look at the float_status pointer except for TARGET_MIPS. However, this isn't guaranteed, and to be able to remove the ifdef in floatx80_default_nan() we're going to need a real float_status here. Rearrange m68k_cpu_reset_hold() so that we initialize env->fp_status earlier, and thus can pass it to floatx80_default_nan(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-28-peter.maydell@linaro.org
Diffstat (limited to 'include/gdbstub/commands.h')
0 files changed, 0 insertions, 0 deletions