qemu/target/m68k
Peter Maydell ad58ba13d0 target/m68k: Initialize float_status fields in gdb set/get functions
In cf_fpu_gdb_get_reg() and cf_fpu_gdb_set_reg() we use a temporary
float_status variable to pass to floatx80_to_float64() and
float64_to_floatx80(), but we don't initialize it, meaning that those
functions could access uninitialized data.  Zero-init the structs.

(We don't need to set a NaN-propagation rule here because we
don't use these with a 2-argument fpu operation.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241025141254.2141506-11-peter.maydell@linaro.org
2024-11-05 10:09:54 +00:00
..
cpu-param.h license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later 2024-09-20 10:11:59 +03:00
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
cpu.c target/m68k: Explicitly set 2-NaN propagation rule 2024-11-05 10:09:54 +00:00
cpu.h target/m68k: Perform the semihosting test during translate 2024-04-24 15:46:00 -07:00
fpu_helper.c target/m68k: Explicitly set 2-NaN propagation rule 2024-11-05 10:09:54 +00:00
gdbstub.c target/m68k: Use explicit big-endian LD/ST API 2024-10-07 11:33:20 +02:00
helper.c target/m68k: Initialize float_status fields in gdb set/get functions 2024-11-05 10:09:54 +00:00
helper.h target/m68k: Map FPU exceptions to FPSR register 2024-04-09 07:43:31 -10:00
Kconfig target/m68k: Restrict semihosting to TCG 2024-07-22 09:38:08 +01:00
m68k-semi.c target/m68k: Pass semihosting arg to exit 2024-04-24 15:46:00 -07:00
meson.build target/m68k: Add semihosting stub 2024-07-22 09:38:03 +01:00
monitor.c hmp: Pass monitor to mon_get_cpu_env() 2020-11-13 12:45:51 +00:00
op_helper.c target/m68k: Perform the semihosting test during translate 2024-04-24 15:46:00 -07:00
qregs.h.inc target/m68k: Rename qregs.def -> qregs.h.inc 2022-11-05 20:35:45 +01:00
semihosting-stub.c target/m68k: Add semihosting stub 2024-07-22 09:38:03 +01:00
softfloat_fpsp_tables.h
softfloat.c softfloat: Introduce Floatx80RoundPrec 2021-06-03 14:04:02 -07:00
softfloat.h
translate.c target/m68k: Always return a temporary from gen_lea_mode 2024-10-08 06:40:31 -07:00