summaryrefslogtreecommitdiff
path: root/include/opcode/msp430-decode.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-06-11 07:20:02 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2016-06-14 11:41:34 -0700
commit99a54ef6f705eedb20f8f4baf3fdd47cc5ca8a92 (patch)
tree2beb7125c18fc8665cf443b4a360d5bb9246a92e /include/opcode/msp430-decode.h
parenteecc1a7faa15327d4a1fc574d9b54e86bb07cbec (diff)
Change the size field of MSP430_Opcode_Decoded to a plain integer.
The size field was defined as an instance of an enum, but existing code treats the size field as a plain integer containing a bit count. include/ChangeLog: * opcode/msp430-decode.h (MSP430_Size): Remove. (Msp430_Opcode_Decoded): Change type of size to int.
Diffstat (limited to 'include/opcode/msp430-decode.h')
-rw-r--r--include/opcode/msp430-decode.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/opcode/msp430-decode.h b/include/opcode/msp430-decode.h
index b19a51a8b7..f9e1b4c40a 100644
--- a/include/opcode/msp430-decode.h
+++ b/include/opcode/msp430-decode.h
@@ -87,13 +87,6 @@ typedef struct
unsigned char condition : 3;
} MSP430_Opcode_Operand;
-typedef enum
-{
- MSP430_Byte = 0,
- MSP430_Word,
- MSP430_Addr
-} MSP430_Size;
-
/* These numerically match the bit encoding. */
typedef enum
{
@@ -125,7 +118,7 @@ typedef struct
unsigned repeats:5; /* Contains COUNT-1, or register number. */
int n_bytes; /* Opcode size in BYTES. */
char * syntax;
- MSP430_Size size; /* Operand size in BITS. */
+ int size; /* Operand size in BITS. */
MSP430_Condition cond;
/* By convention, these are [0]destination, [1]source. */
MSP430_Opcode_Operand op[2];