diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2005-11-10 14:32:28 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2005-11-10 14:32:28 +0000 |
commit | dc82c973b37a3ef26595f75024c49108c7738d0a (patch) | |
tree | 2053a32e43be00341332ca026aa1ad2a1c824aba /opcodes | |
parent | 72a37d8dadd9c642a270a449bb4b378b06961351 (diff) | |
download | gdb-dc82c973b37a3ef26595f75024c49108c7738d0a.zip gdb-dc82c973b37a3ef26595f75024c49108c7738d0a.tar.gz gdb-dc82c973b37a3ef26595f75024c49108c7738d0a.tar.bz2 |
* m68k-dis.c (print_insn_m68k): Only match FPU insns with
coprocessor ID 1.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/m68k-dis.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5e9bcff..aa14a3d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2005-11-10 Andreas Schwab <schwab@suse.de> + + * m68k-dis.c (print_insn_m68k): Only match FPU insns with + coprocessor ID 1. + 2005-11-08 H.J. Lu <hongjiu.lu@intel.com> * m32c-desc.c: Regenerated. 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; |