]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/i386: do not use s->tmp4 for push
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Oct 2023 07:32:06 +0000 (09:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Dec 2023 21:03:53 +0000 (22:03 +0100)
Just create a temporary for the occasion.

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

index b79c312465b2b7cb5c41aaf0791794aa7612306b..afe0fa6c65f2d9a8d35839337dce86adb7210948 100644 (file)
@@ -2580,7 +2580,7 @@ static void gen_push_v(DisasContext *s, TCGv val)
 
     if (!CODE64(s)) {
         if (ADDSEG(s)) {
-            new_esp = s->tmp4;
+            new_esp = tcg_temp_new();
             tcg_gen_mov_tl(new_esp, s->A0);
         }
         gen_lea_v_seg(s, a_ot, s->A0, R_SS, -1);