summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/opcodes/arc-opc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/opcodes/arc-opc.c')
-rw-r--r--contrib/binutils/opcodes/arc-opc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/binutils/opcodes/arc-opc.c b/contrib/binutils/opcodes/arc-opc.c
index b7afb86..614fff0 100644
--- a/contrib/binutils/opcodes/arc-opc.c
+++ b/contrib/binutils/opcodes/arc-opc.c
@@ -20,6 +20,7 @@
#include "sysdep.h"
#include <stdio.h>
#include "ansidecl.h"
+#include "bfd.h"
#include "opcode/arc.h"
#define INSERT_FN(fn) \
@@ -65,6 +66,9 @@ enum operand {OP_NONE,OP_REG,OP_SHIMM,OP_LIMM};
enum operand ls_operand[OPERANDS];
+struct arc_opcode *arc_ext_opcodes;
+struct arc_ext_operand_value *arc_ext_operands;
+
#define LS_VALUE 0
#define LS_DEST 0
#define LS_BASE 1
@@ -513,7 +517,7 @@ arc_get_opcode_mach (bfd_mach, big_p)
ARC_MACH_7,
ARC_MACH_8
};
- return mach_type_map[bfd_mach] | (big_p ? ARC_MACH_BIG : 0);
+ return mach_type_map[bfd_mach - bfd_mach_arc_5] | (big_p ? ARC_MACH_BIG : 0);
}
/* Initialize any tables that need it.
OpenPOWER on IntegriCloud