]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 10 Oct 2024 18:08:58 +0000 (21:08 +0300)
commitba618d45c8dcfc6d6b18a9815ba8ab6b7ad73c47
treec50f10f1cccbfe6ccec2aadc360d20b06923f5d7
parentfb8f8129c2384542d2fdce47764e8643865e0621
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>
(cherry picked from commit 352cc9f300d83ea48b8154bfd2ff985fece887d0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/m68k/translate.c