]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/m68k: Always return a temporary from gen_lea_mode
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 13 Aug 2024 00:04:00 +0000 (10:04 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Oct 2024 13:40:31 +0000 (06:40 -0700)
commit352cc9f300d83ea48b8154bfd2ff985fece887d0
treed1e160b155b286da3fa89681d4ac96b8742a9e95
parent3213da7b9539581c6df95f8ced5b09d0b02d425f
target/m68k: Always return a temporary from gen_lea_mode

Returning a raw areg does not preserve the value if the areg
is subsequently modified.  Fixes, e.g. "jsr (sp)", where the
return address is pushed before the branch.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2483
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240813000737.228470-1-richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/m68k/translate.c