Skip to content

Commit

Permalink
target/i386: do not use s->tmp4 for push
Browse files Browse the repository at this point in the history
Just create a temporary for the occasion.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Dec 29, 2023
1 parent 80e55f5 commit 1ec46bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/i386/tcg/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1ec46bf

Please sign in to comment.