[6758] Fix mfcr on ppc64-softmmu
Revision: 6758
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6758 Author: aurel32 Date: 2009-03-07 20:57:47 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
Fix mfcr on ppc64-softmmu
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/translate.c
===================================================================
target-ppc/translate.c +2 -2
@@ -3855,8 +3855,8 @@if (likely (crm && ((crm & (crm -1 )) ==0 ))) { crn =ctz32 (crm);tcg_gen_extu_i32_tl (cpu_gpr[rD (ctx->opcode)], cpu_crf[7 - crn]); -tcg_gen_shli_i32 (cpu_gpr[rD (ctx->opcode)], - cpu_gpr[rD (ctx->opcode)], crn *4 ); +tcg_gen_shli_tl (cpu_gpr[rD (ctx->opcode)], + cpu_gpr[rD (ctx->opcode)], crn *4 ); } }else {gen_helper_load_cr (cpu_gpr[rD (ctx->opcode)]);