diff options
author | Patrick Macdonald <patrickm@redhat.com> | 2001-03-20 20:56:34 +0000 |
---|---|---|
committer | Patrick Macdonald <patrickm@redhat.com> | 2001-03-20 20:56:34 +0000 |
commit | ead61887e1eb94511e50f0d4562900f8015f23d9 (patch) | |
tree | ec713d2ca2dce6b0eb8200f126730b1ffbe0ca9c /opcodes/fr30-dis.c | |
parent | 966a3588ad7b7f0e3703ce98521734149d7787e2 (diff) | |
download | gdb-ead61887e1eb94511e50f0d4562900f8015f23d9.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/fr30-dis.c')
-rw-r--r-- | opcodes/fr30-dis.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/opcodes/fr30-dis.c b/opcodes/fr30-dis.c index e75944de8fd..f389dcc1edb 100644 --- a/opcodes/fr30-dis.c +++ b/opcodes/fr30-dis.c @@ -624,17 +624,21 @@ print_insn_fr30 (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 |