From f04265eceb78a33e452faa8727562e96af374f39 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 22 Sep 2015 17:21:13 +0100 Subject: 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. --- include/opcode/ChangeLog | 4 ++++ include/opcode/rx.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'include') 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 + + * rx.h (enum RX_Size): Add RX_Bad_Size entry. + 2015-09-09 Daniel Santos * 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 -- cgit v1.1