Commit 2e31f5d38ca5b187f76e86faafe29a2ec008b1d7

Authored by pbrook
1 parent aa25cf46

Fix typos in PPC TCG conversion.

Signed-off-by: Paul Brook <paul@codesourcery.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5521 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-ppc/translate.c
@@ -1315,7 +1315,7 @@ GEN_HANDLER(cntlzw, 0x1F, 0x1A, 0x00, 0x00000000, PPC_INTEGER) @@ -1315,7 +1315,7 @@ GEN_HANDLER(cntlzw, 0x1F, 0x1A, 0x00, 0x00000000, PPC_INTEGER)
1315 { 1315 {
1316 tcg_gen_helper_1_1(helper_cntlzw, cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opcode)]); 1316 tcg_gen_helper_1_1(helper_cntlzw, cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opcode)]);
1317 if (unlikely(Rc(ctx->opcode) != 0)) 1317 if (unlikely(Rc(ctx->opcode) != 0))
1318 - gen_set_Rc0(ctx, cpu_gpr[rS(ctx->opcode)]); 1318 + gen_set_Rc0(ctx, cpu_gpr[rA(ctx->opcode)]);
1319 } 1319 }
1320 /* eqv & eqv. */ 1320 /* eqv & eqv. */
1321 GEN_LOGICAL2(eqv, tcg_gen_eqv_tl, 0x08, PPC_INTEGER); 1321 GEN_LOGICAL2(eqv, tcg_gen_eqv_tl, 0x08, PPC_INTEGER);
@@ -3450,7 +3450,7 @@ GEN_HANDLER(name, 0x13, 0x01, opc, 0x00000001, PPC_INTEGER) \ @@ -3450,7 +3450,7 @@ GEN_HANDLER(name, 0x13, 0x01, opc, 0x00000001, PPC_INTEGER) \
3450 else if (sh < 0) \ 3450 else if (sh < 0) \
3451 tcg_gen_shli_i32(temp1, cpu_crf[crbA(ctx->opcode) >> 2], -sh); \ 3451 tcg_gen_shli_i32(temp1, cpu_crf[crbA(ctx->opcode) >> 2], -sh); \
3452 else \ 3452 else \
3453 - tcg_gen_mov_i32(temp1, cpu_crf[crbB(ctx->opcode) >> 2]); \ 3453 + tcg_gen_mov_i32(temp1, cpu_crf[crbA(ctx->opcode) >> 2]); \
3454 temp2 = tcg_temp_new(TCG_TYPE_I32); \ 3454 temp2 = tcg_temp_new(TCG_TYPE_I32); \
3455 sh = (crbD(ctx->opcode) & 0x03) - (crbB(ctx->opcode) & 0x03); \ 3455 sh = (crbD(ctx->opcode) & 0x03) - (crbB(ctx->opcode) & 0x03); \
3456 if (sh > 0) \ 3456 if (sh > 0) \