Fix decoding of mtacc, dmac, fmac. These files should really get merged
authorJohn Gilmore <gnu@cygnus>
Fri, 8 Nov 1991 01:50:51 +0000 (01:50 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 8 Nov 1991 01:50:51 +0000 (01:50 +0000)
with the ones in BFD and the assembler, but c'est la vie.

gdb/ChangeLog
gdb/am29k-opcode.h
gdb/am29k-pinsn.c

index 0ffcf092758f07c2bd63b17ffba4bb155c0816a9..a233e08ecea20ee2fc36caff626a60cf3e47e1f4 100644 (file)
@@ -1,5 +1,7 @@
 Thu Nov  7 04:51:19 1991  John Gilmore  (gnu at cygnus.com)
 
+       * am29k-pinsn.c, am29k-opcode.h:  Fix decoding of mtacc, dmac, fmac.
+
        * tm-*.h:  Remove READ_DBX_FORMAT, COFF_FORMAT, and
        READ_MIPS_FORMAT, which have been unused since BFD.  Still
        remaining is COFF_NO_LONG_FILE_NAMES.
index 63243f416b889d2ee118ac1887172480ee407ad2..3a32e230c62341441858c09c989f892985436b71 100644 (file)
@@ -194,7 +194,7 @@ static struct am29k_opcode am29k_opcodes[] =
 { "mfacc", 0xe9, "c,d,f" },
 { "mfsr", 0xc6, "c,s" },
 { "mftlb", 0xb6, "c,a" },
-{ "mtacc", 0xe8, "c,d,f" },
+{ "mtacc", 0xe8, "a,d,f" },
 { "mtsr", 0xce, "s,b" },
 { "mtsrim", 0x04, "s,x" },
 { "mttlb", 0xbe, "a,b" },
index 4791348539192c8b4ae3d05c1baaa8d085ad31d7..d0e18fcb616056fcbcefa6d5cd72a69fa35d06ed 100644 (file)
@@ -233,11 +233,11 @@ print_insn (memaddr, stream)
                  break;
 
                case 'F':
-                 fprintf_filtered (stream, "%d", (insn0 >> 18) & 15);
+                 fprintf_filtered (stream, "%d", (insn16 >> 2) & 15);
                  break;
 
                case 'C':
-                 fprintf_filtered (stream, "%d", (insn0 >> 16) & 3);
+                 fprintf_filtered (stream, "%d", insn16 & 3);
                  break;
 
                default: