From dc82c973b37a3ef26595f75024c49108c7738d0a Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 10 Nov 2005 14:32:28 +0000 Subject: * m68k-dis.c (print_insn_m68k): Only match FPU insns with coprocessor ID 1. --- opcodes/m68k-dis.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'opcodes/m68k-dis.c') diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index 3504467..5e4150d 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -1499,6 +1499,20 @@ print_insn_m68k (bfd_vma memaddr, disassemble_info *info) } } + /* Don't match FPU insns with non-default coprocessor ID. */ + if (*d == '\0') + { + for (d = opc->args; *d; d += 2) + { + if (d[0] == 'I') + { + val = fetch_arg (buffer, 'd', 3, info); + if (val != 1) + break; + } + } + } + if (*d == '\0') if ((val = match_insn_m68k (memaddr, info, opc, & priv))) return val; -- cgit v1.1