aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/rx.h
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/opcode/rx.h
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/opcode/rx.h')
-rw-r--r--include/opcode/rx.h2
1 files changed, 2 insertions, 0 deletions
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