* m68k-dis.c (print_insn_m68k): Only match FPU insns with
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 10 Nov 2005 14:32:28 +0000 (14:32 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 10 Nov 2005 14:32:28 +0000 (14:32 +0000)
coprocessor ID 1.

opcodes/ChangeLog
opcodes/m68k-dis.c

index 5e9bcffbf14be7ea1aecfc1b294e7a942280cf53..aa14a3d125a3285384a46fb293d3780db8296be9 100644 (file)
@@ -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.
index 3504467f7d0b3e03be46f1585ef8f3d77a7b1b6c..5e4150d05ed8e59d7cb1f05c67c5326a63bf04a9 100644 (file)
@@ -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;