From: Paolo Bonzini Date: Fri, 20 Oct 2023 07:32:06 +0000 (+0200) Subject: target/i386: do not use s->tmp4 for push X-Git-Tag: v9.0.0-rc0~125^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ec46bf2378fcc8a5a08d0ca062a96a0f6bc3a8c;p=thirdparty%2Fqemu.git target/i386: do not use s->tmp4 for push Just create a temporary for the occasion. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index b79c312465b..afe0fa6c65f 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -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);