qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] sh4 mov.b fix
@ 2007-08-24  5:51 Vince Weaver
  2007-08-24 13:28 ` Vince Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Vince Weaver @ 2007-08-24  5:51 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 113 bytes --]

Hello

I think this patch is needed for proper implementation of
the sh4 mov.b @(disp,Rm),R0 instruction.

Vince

[-- Attachment #2: Type: TEXT/PLAIN, Size: 625 bytes --]

--- ./qemu-snapshot-2007-08-14_05/target-sh4/translate.c	2007-08-24 01:48:47.000000000 -0400
+++ ./qemu-snapshot-2007-08-14_05/target-sh4/translate.c.orig	2007-08-24 01:37:56.000000000 -0400
@@ -879,10 +879,10 @@
 	gen_op_stw_T0_T1(ctx);
 	return;
     case 0x8400:		/* mov.b @(disp,Rn),R0 */
-	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));
+	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);
 	return;
     case 0x8500:		/* mov.w @(disp,Rn),R0 */
 	gen_op_movl_rN_T0(REG(B7_4));

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] sh4 mov.b fix
  2007-08-24  5:51 [Qemu-devel] sh4 mov.b fix Vince Weaver
@ 2007-08-24 13:28 ` Vince Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Vince Weaver @ 2007-08-24 13:28 UTC (permalink / raw)
  To: qemu-devel


> I think this patch is needed for proper implementation of
> the sh4 mov.b @(disp,Rm),R0 instruction.

and of course, I managed to send a reversed patch.  That will teach me to
send out things like that late at night.  Here's the proper patch.

Vince

--- ./qemu-snapshot-2007-08-14_05/target-sh4/translate.c.orig	2007-08-24 01:37:56.000000000 -0400
+++ ./qemu-snapshot-2007-08-14_05/target-sh4/translate.c	2007-08-24 01:48:47.000000000 -0400
@@ -879,10 +879,10 @@
 	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));

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-24 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-24  5:51 [Qemu-devel] sh4 mov.b fix Vince Weaver
2007-08-24 13:28 ` Vince Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).