* arc-opc.c: Include bfd.h.
authorAlan Modra <amodra@gmail.com>
Mon, 2 Sep 2002 06:00:05 +0000 (06:00 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Sep 2002 06:00:05 +0000 (06:00 +0000)
(arc_get_opcode_mach): Subtract off base bfd_mach value.

opcodes/ChangeLog
opcodes/arc-opc.c

index 5e0cfe9508c79965bf73fb94348c983e0095d88f..62d2745d9484fd29da46f94f4c9eebfd6290baf9 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * arc-opc.c: Include bfd.h.
+       (arc_get_opcode_mach): Subtract off base bfd_mach value.
+
 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
 
        * v850-dis.c (disassemble): Remove bfd_mach_v850ea case.
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.028016 seconds and 4 git commands to generate.