Fix a bug in X86_64 dynamic translation in push_T1() -- emits a push
for the wrong temporary.

Signed-off-by: Ivan Ganev <address@hidden>
---
diff -Naur qemu-0.15.0-org/target-i386/translate.c
qemu-0.15.0-mod/target-i386/translate.c
--- qemu-0.15.0-org/target-i386/translate.c     2011-08-08
11:28:42.000000000 -0700
+++ qemu-0.15.0-mod/target-i386/translate.c     2011-09-16
16:26:01.667339365 -0700
@@ -2473,7 +2473,7 @@
             gen_op_st_T1_A0(OT_QUAD + s->mem_index);
         } else {
             gen_op_addq_A0_im(-2);
-            gen_op_st_T0_A0(OT_WORD + s->mem_index);
+            gen_op_st_T1_A0(OT_WORD + s->mem_index);
         }
         gen_op_mov_reg_A0(2, R_ESP);
     } else
--

Reply via email to