From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: gdb-patches <gdb-patches@sourceware.org>
Subject: [PATCH] RX sim btst instruction
Date: Wed, 23 Dec 2009 03:35:00 -0000 [thread overview]
Message-ID: <87hbriqs5v.wl%ysato@users.sourceforge.jp> (raw)
"btst #imm,Rs2" and "btst Rs,Rs2" is false result.
Rs2 information is opecode.op[1].
Index: rx/ChangeLog
===================================================================
RCS file: /cvs/src/src/sim/rx/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- rx/ChangeLog 30 Nov 2009 23:37:39 -0000 1.2
+++ rx/ChangeLog 23 Dec 2009 03:17:15 -0000
@@ -1,3 +1,7 @@
+2009-12-22 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * rx/rx.c (decode_opcode): btst bit address mask fix.
+
2009-11-30 DJ Delorie <dj@redhat.com>
* rx/rx.c (decode_opcode): fix SWHILE logic.
Index: rx/rx.c
===================================================================
RCS file: /cvs/src/src/sim/rx/rx.c,v
retrieving revision 1.2
diff -u -r1.2 rx.c
--- rx/rx.c 30 Nov 2009 23:37:39 -0000 1.2
+++ rx/rx.c 23 Dec 2009 03:17:16 -0000
@@ -676,7 +676,7 @@
case RXO_btst:
ma = GS ();
mb = GS2 ();
- if (opcode.op[0].type == RX_Operand_Register)
+ if (opcode.op[1].type == RX_Operand_Register)
mb &= 0x1f;
else
mb &= 0x07;
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
next reply other threads:[~2009-12-23 3:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 3:35 Yoshinori Sato [this message]
2009-12-23 3:52 ` DJ Delorie
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=87hbriqs5v.wl%ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=gdb-patches@sourceware.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