summaryrefslogtreecommitdiff
path: root/opcodes/cgen-dis.in
diff options
context:
space:
mode:
authorPatrick Macdonald <patrickm@redhat.com>2001-03-20 20:56:34 +0000
committerPatrick Macdonald <patrickm@redhat.com>2001-03-20 20:56:34 +0000
commit4b8c4627d8d5addc79bf6d378ae62197c03f0a26 (patch)
tree7aafd15db19ab89751d6bbac56686b7d807cbc3d /opcodes/cgen-dis.in
parente60094eb16e581dba8ce3def7b1d900f4dd9a7b5 (diff)
downloadbinutils-redhat-4b8c4627d8d5addc79bf6d378ae62197c03f0a26.tar.gz
Add support for cgen machine determination.
* cgen-dis.in (print_insn_@arch@): Add support for target machine determination via CGEN_COMPUTE_MACH. * fr30-desc.c: Regenerate. * fr30-dis.c: Regenerate. * fr30-opc.h: Regenerate. * m32r-desc.c: Regenerate. * m32r-dis.c: Regenerate. * m32r-opc.h: Regenerate. * m32r-opinst.c: Regenerate.
Diffstat (limited to 'opcodes/cgen-dis.in')
-rw-r--r--opcodes/cgen-dis.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/opcodes/cgen-dis.in b/opcodes/cgen-dis.in
index 0e7c35a567..1cb8ea372f 100644
--- a/opcodes/cgen-dis.in
+++ b/opcodes/cgen-dis.in
@@ -358,17 +358,21 @@ print_insn_@arch@ (pc, info)
arch = info->arch;
if (arch == bfd_arch_unknown)
arch = CGEN_BFD_ARCH;
-
- /* There's no standard way to compute the isa number (e.g. for arm thumb)
+
+ /* There's no standard way to compute the machine or isa number
so we leave it to the target. */
+#ifdef CGEN_COMPUTE_MACH
+ mach = CGEN_COMPUTE_MACH (info);
+#else
+ mach = info->mach;
+#endif
+
#ifdef CGEN_COMPUTE_ISA
isa = CGEN_COMPUTE_ISA (info);
#else
isa = 0;
#endif
- mach = info->mach;
-
/* If we've switched cpu's, close the current table and open a new one. */
if (cd
&& (isa != prev_isa