SH4 mov.b fix, by Vince Weaver.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Aug 2007 17:48:48 +0000 (17:48 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Aug 2007 17:48:48 +0000 (17:48 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3152 c046a42c-6fe2-441c-8c8c-71466251a162

target-sh4/translate.c

index b7be352..67ef839 100644 (file)
@@ -879,10 +879,10 @@ void decode_opc(DisasContext * ctx)
        gen_op_stw_T0_T1(ctx);
        return;
     case 0x8400:               /* mov.b @(disp,Rn),R0 */
-       gen_op_movl_rN_T0(REG(0));
-       gen_op_movl_rN_T1(REG(B7_4));
-       gen_op_addl_imm_T1(B3_0);
-       gen_op_stb_T0_T1(ctx);
+       gen_op_movl_rN_T0(REG(B7_4));
+       gen_op_addl_imm_T0(B3_0);
+       gen_op_ldb_T0_T0(ctx);
+       gen_op_movl_T0_rN(REG(0));
        return;
     case 0x8500:               /* mov.w @(disp,Rn),R0 */
        gen_op_movl_rN_T0(REG(B7_4));