You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 weeks ago
..
Kconfig target/m68k: Restrict semihosting to TCG 5 months ago
cpu-param.h license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later 3 months ago
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 1 year ago
cpu.c target/m68k: Explicitly set 2-NaN propagation rule 4 weeks ago
cpu.h target/m68k: Perform the semihosting test during translate 7 months ago
fpu_helper.c target/m68k: Explicitly set 2-NaN propagation rule 4 weeks ago
gdbstub.c target/m68k: Use explicit big-endian LD/ST API 2 months ago
helper.c target/m68k: Initialize float_status fields in gdb set/get functions 4 weeks ago
helper.h target/m68k: Map FPU exceptions to FPSR register 8 months ago
m68k-semi.c target/m68k: Pass semihosting arg to exit 7 months ago
meson.build target/m68k: Add semihosting stub 5 months ago
monitor.c hmp: Pass monitor to mon_get_cpu_env() 4 years ago
op_helper.c target/m68k: Perform the semihosting test during translate 7 months ago
qregs.h.inc target/m68k: Rename qregs.def -> qregs.h.inc 2 years ago
semihosting-stub.c target/m68k: Add semihosting stub 5 months ago
softfloat.c softfloat: Introduce Floatx80RoundPrec 4 years ago
softfloat.h softfloat: merge floatx80_mod and floatx80_rem 5 years ago
softfloat_fpsp_tables.h m68k comments break patch submission due to being incorrectly formatted 6 years ago
translate.c target/m68k: Always return a temporary from gen_lea_mode 2 months ago