[4586] fixed x86_64 regression
Revision: 4586
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4586 Author: bellard Date: 2008-05-25 21:01:05 +0000 (Sun, 25 May 2008)
Log Message:
-----------
fixed x86_64 regression
Modified Paths:
--------------
trunk/target-i386/translate.c
Modified: trunk/target-i386/translate.c
===================================================================
target-i386/translate.c +4 -4
@@ -1511,15 +1511,15 @@if (is_right) {if (is_arith) {gen_exts (ot, cpu_T[0 ]); -tcg_gen_sari_tl (cpu_tmp0, cpu_T[0 ], op2 -1 ); +tcg_gen_sari_tl (cpu_tmp4, cpu_T[0 ], op2 -1 );tcg_gen_sari_tl (cpu_T[0 ], cpu_T[0 ], op2); }else {gen_extu (ot, cpu_T[0 ]); -tcg_gen_shri_tl (cpu_tmp0, cpu_T[0 ], op2 -1 ); +tcg_gen_shri_tl (cpu_tmp4, cpu_T[0 ], op2 -1 );tcg_gen_shri_tl (cpu_T[0 ], cpu_T[0 ], op2); } }else { -tcg_gen_shli_tl (cpu_tmp0, cpu_T[0 ], op2 -1 ); +tcg_gen_shli_tl (cpu_tmp4, cpu_T[0 ], op2 -1 );tcg_gen_shli_tl (cpu_T[0 ], cpu_T[0 ], op2); } }
@@ -1532,7 +1532,7 @@/* update eflags if non zero shift */ if (op2 !=0 ) { -tcg_gen_mov_tl (cpu_cc_src, cpu_tmp0); +tcg_gen_mov_tl (cpu_cc_src, cpu_tmp4);tcg_gen_mov_tl (cpu_cc_dst, cpu_T[0 ]);if (is_right) s->cc_op =CC_OP_SARB + ot;