Commit 8c2cc7cecbb720e5be9db72dab17f659e5dbfe22

Authored by ths
1 parent 0975c304

SH4 mov.b fix, by Vince Weaver.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3152 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
target-sh4/translate.c
@@ -879,10 +879,10 @@ void decode_opc(DisasContext * ctx) @@ -879,10 +879,10 @@ void decode_opc(DisasContext * ctx)
879 gen_op_stw_T0_T1(ctx); 879 gen_op_stw_T0_T1(ctx);
880 return; 880 return;
881 case 0x8400: /* mov.b @(disp,Rn),R0 */ 881 case 0x8400: /* mov.b @(disp,Rn),R0 */
882 - gen_op_movl_rN_T0(REG(0));  
883 - gen_op_movl_rN_T1(REG(B7_4));  
884 - gen_op_addl_imm_T1(B3_0);  
885 - gen_op_stb_T0_T1(ctx); 882 + gen_op_movl_rN_T0(REG(B7_4));
  883 + gen_op_addl_imm_T0(B3_0);
  884 + gen_op_ldb_T0_T0(ctx);
  885 + gen_op_movl_T0_rN(REG(0));
886 return; 886 return;
887 case 0x8500: /* mov.w @(disp,Rn),R0 */ 887 case 0x8500: /* mov.w @(disp,Rn),R0 */
888 gen_op_movl_rN_T0(REG(B7_4)); 888 gen_op_movl_rN_T0(REG(B7_4));