diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-20 09:32:06 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-12-29 22:03:53 +0100 |
commit | 1ec46bf2378fcc8a5a08d0ca062a96a0f6bc3a8c (patch) | |
tree | f2149d9b0bf7ad6aa04ed3aa3f18b4965ac85813 | |
parent | 80e55f54ac186e01a74a69d51f225ab6afefb4c6 (diff) |
target/i386: do not use s->tmp4 for push
Just create a temporary for the occasion.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | target/i386/tcg/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index b79c312465..afe0fa6c65 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); |