]> 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:03:54 +0000 (21:03 +0300)
commit3b2a89a160affeec7317e498330ffb4b9d8324b0
treef5f940c7795a03032dc00a8190f36d354b64d7ef
parent2c2721a2c2d08bc00f7d224fcae9014725641d8c
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