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
This commit is contained in:
parent
d8173e0fba
commit
5aa3b1eaf8
@ -528,7 +528,7 @@ void _decode_opc(DisasContext * ctx)
|
|||||||
tcg_gen_shli_i32(cpu_T[0], cpu_T[0], 16);
|
tcg_gen_shli_i32(cpu_T[0], cpu_T[0], 16);
|
||||||
tcg_gen_shri_i32(cpu_T[1], cpu_gregs[REG(B11_8)], 16);
|
tcg_gen_shri_i32(cpu_T[1], cpu_gregs[REG(B11_8)], 16);
|
||||||
tcg_gen_andi_i32(cpu_T[1], cpu_T[1], 0xffff);
|
tcg_gen_andi_i32(cpu_T[1], cpu_T[1], 0xffff);
|
||||||
tcg_gen_ori_i32(cpu_gregs[REG(B11_8)], cpu_T[0], cpu_T[1]);
|
tcg_gen_or_i32(cpu_gregs[REG(B11_8)], cpu_T[0], cpu_T[1]);
|
||||||
return;
|
return;
|
||||||
case 0x300c: /* add Rm,Rn */
|
case 0x300c: /* add Rm,Rn */
|
||||||
tcg_gen_add_i32(cpu_gregs[REG(B11_8)], cpu_gregs[REG(B11_8)], cpu_gregs[REG(B7_4)]);
|
tcg_gen_add_i32(cpu_gregs[REG(B11_8)], cpu_gregs[REG(B11_8)], cpu_gregs[REG(B7_4)]);
|
||||||
|
Loading…
Reference in New Issue
Block a user