Change the size field of MSP430_Opcode_Decoded to a plain integer.
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 11 Jun 2016 14:20:02 +0000 (07:20 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 14 Jun 2016 18:41:34 +0000 (11:41 -0700)
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.

include/ChangeLog
include/opcode/msp430-decode.h

index 722b8a5365cecd54bd95788da316ac8a2529f39b..46a2f3affb17f5913e395484f448ce248e2d9433 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-14  John Baldwin  <jhb@FreeBSD.org>
+
+       * opcode/msp430-decode.h (MSP430_Size): Remove.
+       (Msp430_Opcode_Decoded): Change type of size to int.
+
 2016-06-11  Alan Modra  <amodra@gmail.com>
 
        * coff/sparc.h (COFF_ADJUST_SYM_OUT_POST): Define.
index b19a51a8b7a5e3304a10557720ee6c3bbce754ef..f9e1b4c40a10c86d053851d7c60cd6d97ade8a5b 100644 (file)
@@ -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];
This page took 0.026263 seconds and 4 git commands to generate.