* arc-opc.c: Include bfd.h.

(arc_get_opcode_mach): Subtract off base bfd_mach value.
This commit is contained in:
Alan Modra 2002-09-02 06:00:05 +00:00
parent 3b77b1d509
commit d943fe33c6
2 changed files with 7 additions and 1 deletions

View 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.

View 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.