]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/microblaze: Move setting of float rounding mode to reset
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:56 +0000 (10:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:09:56 +0000 (10:09 +0000)
commitc18a13edceca5419beb6eb703ffad6980d926f3b
tree2eead65a1cd607860bb400d996c02b04ca2c45b2
parent8403a5015c5d5ef01792dc5ebf3c10aa5594931f
target/microblaze: Move setting of float rounding mode to reset

Although the floating point rounding mode for Microblaze is always
nearest-even, we cannot set it just once in the CPU initfn.  This is
because env->fp_status is in the part of the CPU state struct that is
zeroed on reset.

Move the call to set_float_rounding_mode() into the reset fn.

(This had no guest-visible effects because it happens that the
float_round_nearest_even enum value is 0, so when the struct was
zeroed it didn't corrupt the setting.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241025141254.2141506-18-peter.maydell@linaro.org
target/microblaze/cpu.c