From 27fca2d871b27e82e9e461bbad4fefdb45910e05 Mon Sep 17 00:00:00 2001 From: Patrick Macdonald Date: Tue, 20 Mar 2001 20:56:34 +0000 Subject: 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. --- opcodes/m32r-dis.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'opcodes/m32r-dis.c') diff --git a/opcodes/m32r-dis.c b/opcodes/m32r-dis.c index 8ffce7c7889..7164a40cf5c 100644 --- a/opcodes/m32r-dis.c +++ b/opcodes/m32r-dis.c @@ -563,17 +563,21 @@ print_insn_m32r (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 -- cgit v1.2.1