aarch64: Add support for Armv9.1-A to Armv9.3-A
[binutils-gdb.git] / include / opcode / msp430-decode.h
index 0653aded7952d74dff766aa92fd0bd65f84c7edb..12cb21d3318967465c351d4c73e19bbf3c71d5e9 100644 (file)
@@ -1,5 +1,5 @@
 /* Opcode decoder for the TI MSP430
-   Copyright 2012-2013 Free Software Foundation, Inc.
+   Copyright (C) 2012-2021 Free Software Foundation, Inc.
    Written by DJ Delorie <dj@redhat.com>
 
    This file is part of GDB, the GNU Debugger.
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum
 {
   MSO_unknown,
@@ -83,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
 {
@@ -121,10 +118,14 @@ 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];
 } MSP430_Opcode_Decoded;
 
 int msp430_decode_opcode (unsigned long, MSP430_Opcode_Decoded *, int (*)(void *), void *);
+
+#ifdef __cplusplus
+}
+#endif