* arc-opc.c: Include bfd.h.
[deliverable/binutils-gdb.git] / opcodes / arc-opc.c
index b7afb86ac9275fd4bb168eddb87e63bc56e60842..c2d9e1b747842426267b510119115e3761c4ac7a 100644 (file)
@@ -20,6 +20,7 @@
 #include "sysdep.h"
 #include <stdio.h>
 #include "ansidecl.h"
+#include "bfd.h"
 #include "opcode/arc.h"
 
 #define INSERT_FN(fn) \
@@ -513,7 +514,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.
This page took 0.026114 seconds and 4 git commands to generate.