Patchwork [for-1.8,14/61] target-i386: Fix typo in gen_push_T1

login
register
mail settings
Submitter Richard Henderson
Date Nov. 7, 2013, 1:04 a.m.
Message ID <1383786324-18415-15-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/289124/
State New
Headers show

Comments

Richard Henderson - Nov. 7, 2013, 1:04 a.m.
By inspection, obviously we should be storing T[1] not T[0].
This could only happen for x86_64 in 64-bit mode with 0x66
prefix to call insn -- i.e. never.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-i386/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target-i386/translate.c b/target-i386/translate.c
index f07fca0..e89991e 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -2485,7 +2485,7 @@  static void gen_push_T1(DisasContext *s)
             gen_op_st_v(s, MO_64, cpu_T[1], cpu_A0);
         } else {
             gen_op_addq_A0_im(-2);
-            gen_op_st_v(s, MO_16, cpu_T[0], cpu_A0);
+            gen_op_st_v(s, MO_16, cpu_T[1], cpu_A0);
         }
         gen_op_mov_reg_A0(2, R_ESP);
     } else