]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/rx: Remove TCG_CALL_NO_WG from helpers which write env
authorKeith Packard <keithp@keithp.com>
Tue, 18 Feb 2025 21:21:01 +0000 (13:21 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Mar 2025 15:03:20 +0000 (15:03 +0000)
commit0ce0739d46983e5e88fa9c149cb305689c9d8c6f
tree572423dffb4171793c852563d4beeeabbf6c2e90
parent7610317f45159b620475aafc7a94c93b66eda7e2
target/rx: Remove TCG_CALL_NO_WG from helpers which write env

Functions which modify TCG globals must not be marked TCG_CALL_NO_WG,
as that tells the optimizer that TCG global values already loaded in
machine registers are still valid, and so any changes which these
helpers make to the CPU state may be ignored.

The target/rx code chooses to put (among other things) all the PSW
bits and also ACC into globals, so the NO_WG flag on various
functions that touch the PSW or ACC is incorrect and must be removed.
This includes all the floating point helper functions, because
update_fpsw() will update PSW Z and S.

Signed-off-by: Keith Packard <keithp@keithp.com>
[PMM: Clarified commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/rx/helper.h