diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-09-02 06:00:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-09-02 06:00:05 +0000 |
commit | 62d91178e7b53c57121bd3f39eb98f16473b8052 (patch) | |
tree | 5c337637e9a85bb7f09745e2782ee3001f965da0 /opcodes/arc-opc.c | |
parent | 23e38732f44fdfdf016d0607ae27ca7dd1ee153f (diff) | |
download | binutils-current-62d91178e7b53c57121bd3f39eb98f16473b8052.tar.gz |
* arc-opc.c: Include bfd.h.
(arc_get_opcode_mach): Subtract off base bfd_mach value.
Diffstat (limited to 'opcodes/arc-opc.c')
-rw-r--r-- | opcodes/arc-opc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/arc-opc.c b/opcodes/arc-opc.c index b7afb86ac..c2d9e1b74 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. |