aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-09-22 17:21:13 +0100
committerNick Clifton <nickc@redhat.com>2015-09-22 17:21:13 +0100
commitf04265eceb78a33e452faa8727562e96af374f39 (patch)
treef134c9c11d36097681f843e41c465c2ee8136d24 /include
parentbc1f8cdaf4b26d1c7af34c7a33038c50fd5eabd4 (diff)
downloadfsf-binutils-gdb-f04265eceb78a33e452faa8727562e96af374f39.zip
fsf-binutils-gdb-f04265eceb78a33e452faa8727562e96af374f39.tar.gz
fsf-binutils-gdb-f04265eceb78a33e452faa8727562e96af374f39.tar.bz2
Enhance the RX disassembler to detect and report bad instructions.
opcode * rx.h (enum RX_Size): Add RX_Bad_Size entry. opcodes * rx-decode.opc (bwl): Use RX_Bad_Size. (sbwl): Likewise. (ubwl): Likewise. Rename to ubw. (uBWL): Rename to uBW. Replace all references to uBWL with uBW. * rx-decode.c: Regenerate. * rx-dis.c (size_names): Add entry for RX_Bad_Size. (opsize_names): Likewise. (print_insn_rx): Detect and report RX_Bad_Size.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/ChangeLog4
-rw-r--r--include/opcode/rx.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index 6fce0ac..d81b604 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-22 Nick Clifton <nickc@redhat.com>
+
+ * rx.h (enum RX_Size): Add RX_Bad_Size entry.
+
2015-09-09 Daniel Santos <daniel.santos@pobox.com>
* visium.h (gen_reg_table): Make static.
diff --git a/include/opcode/rx.h b/include/opcode/rx.h
index 41557b2..4a2cb14 100644
--- a/include/opcode/rx.h
+++ b/include/opcode/rx.h
@@ -38,6 +38,8 @@ typedef enum
RX_SWord,
RX_3Byte,
RX_Long,
+ RX_Bad_Size,
+ RX_MAX_SIZE
} RX_Size;
typedef enum