This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[rx] fix multi-byte nop disassembly
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 21 Apr 2011 01:48:11 -0400
- Subject: [rx] fix multi-byte nop disassembly
The decoder knows about the multi-byte NOPs gas uses for alignment,
but didn't change the syntax accordingly. Fixed and committed.
* rx-decode.opc (rx_decode_opcode): Set the syntax for multi-byte NOPs.
* rx-decode.c: Regenerate.
Index: rx-decode.opc
===================================================================
RCS file: /cvs/src/src/opcodes/rx-decode.opc,v
retrieving revision 1.5
diff -p -U3 -r1.5 rx-decode.opc
--- rx-decode.opc 29 Jul 2010 18:41:27 -0000 1.5
+++ rx-decode.opc 21 Apr 2011 05:34:04 -0000
@@ -274,6 +274,7 @@ rx_decode_opcode (unsigned long pc AU,
if (ss == 3 && sz == 2 && rsrc == 0 && rdst == 0)
{
ID(nop2);
+ rx->syntax = "nop";
}
else
{
@@ -536,6 +537,7 @@ rx_decode_opcode (unsigned long pc AU,
if (ss == 3 && rsrc == 0 && rdst == 0)
{
ID(nop3);
+ rx->syntax = "nop";
}
else
{