From: Vince Weaver <vince@csl.cornell.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] sh4 mov.b fix
Date: Fri, 24 Aug 2007 01:51:25 -0400 (EDT) [thread overview]
Message-ID: <20070824014945.A98528-200000@bell.csl.cornell.edu> (raw)
[-- 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));
next reply other threads:[~2007-08-24 5:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 5:51 Vince Weaver [this message]
2007-08-24 13:28 ` [Qemu-devel] sh4 mov.b fix Vince Weaver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070824014945.A98528-200000@bell.csl.cornell.edu \
--to=vince@csl.cornell.edu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).