]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386: do not clobber A0 in POP translation
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Sep 2022 12:13:01 +0000 (14:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Dec 2023 21:03:21 +0000 (22:03 +0100)
commit24c0573bb0c3f55c47926e3cb047a716608cd113
tree5213ef5ed0fe5e90990732c9cfa572967a883510
parenta71e0b246accc4dc11616580d7232fbf4b782dac
target/i386: do not clobber A0 in POP translation

The new decoder likes to compute the address in A0 very early, so the
gen_lea_v_seg in gen_pop_T0 would clobber the address of the memory
operand.  Instead use T0 since it is already available and will be
overwritten immediately after.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c