summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-09-02 06:00:05 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-09-02 06:00:05 +0000
commit1c7bbdd914c82a742c30d2b131ac9da08d0c1220 (patch)
tree8bdaaf720a95475cdb8ad6a1393d1823e9b6dbe4
parent5765692feff56548059d52547925e2ee546dc602 (diff)
downloadgdb-1c7bbdd914c82a742c30d2b131ac9da08d0c1220.tar.gz
* arc-opc.c: Include bfd.h.
(arc_get_opcode_mach): Subtract off base bfd_mach value.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/arc-opc.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 5e0cfe9508c..62d2745d948 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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.
diff --git a/opcodes/arc-opc.c b/opcodes/arc-opc.c
index b7afb86ac92..c2d9e1b7478 100644
--- a/opcodes/arc-opc.c
+++ b/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) \
@@ -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.