Commit 0497d2f4e49f38539a987e429a0a6b003ec79168
1 parent
8eee0af9
Fix mfcr on ppc64-softmmu
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6758 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
target-ppc/translate.c
... | ... | @@ -3855,8 +3855,8 @@ GEN_HANDLER(mfcr, 0x1F, 0x13, 0x00, 0x00000801, PPC_MISC) |
3855 | 3855 | if (likely(crm && ((crm & (crm - 1)) == 0))) { |
3856 | 3856 | crn = ctz32 (crm); |
3857 | 3857 | tcg_gen_extu_i32_tl(cpu_gpr[rD(ctx->opcode)], cpu_crf[7 - crn]); |
3858 | - tcg_gen_shli_i32(cpu_gpr[rD(ctx->opcode)], | |
3859 | - cpu_gpr[rD(ctx->opcode)], crn * 4); | |
3858 | + tcg_gen_shli_tl(cpu_gpr[rD(ctx->opcode)], | |
3859 | + cpu_gpr[rD(ctx->opcode)], crn * 4); | |
3860 | 3860 | } |
3861 | 3861 | } else { |
3862 | 3862 | gen_helper_load_cr(cpu_gpr[rD(ctx->opcode)]); | ... | ... |