Commit 5aa3b1eaf8e6685e11ccf8faaf15da45d0e3a30f

Authored by aurel32
1 parent d8173e0f

SH4: fix xtrct Rm,Rn (broken in r5103)

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5105 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-sh4/translate.c
... ... @@ -528,7 +528,7 @@ void _decode_opc(DisasContext * ctx)
528 528 tcg_gen_shli_i32(cpu_T[0], cpu_T[0], 16);
529 529 tcg_gen_shri_i32(cpu_T[1], cpu_gregs[REG(B11_8)], 16);
530 530 tcg_gen_andi_i32(cpu_T[1], cpu_T[1], 0xffff);
531   - tcg_gen_ori_i32(cpu_gregs[REG(B11_8)], cpu_T[0], cpu_T[1]);
  531 + tcg_gen_or_i32(cpu_gregs[REG(B11_8)], cpu_T[0], cpu_T[1]);
532 532 return;
533 533 case 0x300c: /* add Rm,Rn */
534 534 tcg_gen_add_i32(cpu_gregs[REG(B11_8)], cpu_gregs[REG(B11_8)], cpu_gregs[REG(B7_4)]);
... ...