]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/m68k: Initialize float_status fields in gdb set/get functions
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:54 +0000 (10:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:54 +0000 (10:09 +0000)
commitad58ba13d04b85c141bca2d927fb9de6490bf0c1
treedebd5eb870be0db23e89402a1bdc462ab5f04c6b
parent0527cfd94c1d648870176b5610aaefb4fc1d7eba
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
target/m68k/helper.c