]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* mips.h: Update copyright.
authorAdam Nemet <anemet@caviumnetworks.com>
Mon, 4 Feb 2008 19:25:05 +0000 (19:25 +0000)
committerAdam Nemet <anemet@caviumnetworks.com>
Mon, 4 Feb 2008 19:25:05 +0000 (19:25 +0000)
(INSN_CHIP_MASK): New macro.
(INSN_OCTEON): New macro.
(CPU_OCTEON): New macro.
(OPCODE_IS_MEMBER): Handle Octeon instructions.

include/opcode/ChangeLog
include/opcode/mips.h

index afd480b1371994004160514ae1009ce363b0b1d8..9edf24ce84df62eebca5c278b59d6f509b414058 100644 (file)
@@ -1,3 +1,11 @@
+2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * mips.h: Update copyright.
+       (INSN_CHIP_MASK): New macro.
+       (INSN_OCTEON): New macro.
+       (CPU_OCTEON): New macro.
+       (OPCODE_IS_MEMBER): Handle Octeon instructions.
+
 2007-11-29  Mark Shinwell  <shinwell@codesourcery.com>
 
        * mips.h (INSN_LOONGSON_2E): New.
index 20638d8a67b458e8b9f8afd9dee8f1cce1859ef6..6ddc9d0ef785d571b1b0cdfcf26fb9004b43ee13 100644 (file)
@@ -1,6 +1,6 @@
 /* mips.h.  Mips opcode list for GDB, the GNU debugger.
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005
+   2003, 2004, 2005, 2008
    Free Software Foundation, Inc.
    Contributed by Ralph Campbell and OSF
    Commented and modified by Ian Lance Taylor, Cygnus Support
@@ -510,6 +510,12 @@ struct mips_opcode
 static const unsigned int mips_isa_table[] =
   { 0x0001, 0x0003, 0x0607, 0x1e0f, 0x3e1f, 0x0a23, 0x3e63, 0x3ebf, 0x3fff };
 
+/* Masks used for Chip specific instructions.  */
+#define INSN_CHIP_MASK           0xc3ff0800
+
+/* Cavium Networks Octeon instructions.  */
+#define INSN_OCTEON              0x00000800
+
 /* Masks used for MIPS-defined ASEs.  */
 #define INSN_ASE_MASK            0x3c00f000
 
@@ -521,8 +527,6 @@ static const unsigned int mips_isa_table[] =
 /* MIPS-3D ASE */
 #define INSN_MIPS3D               0x00008000
 
-/* Chip specific instructions.  These are bitmasks.  */
-
 /* MIPS R4650 instruction.  */
 #define INSN_4650                 0x00010000
 /* LSI R4010 instruction.  */
@@ -605,6 +609,7 @@ static const unsigned int mips_isa_table[] =
 #define CPU_SB1         12310201        /* octal 'SB', 01.  */
 #define CPU_LOONGSON_2E 3001
 #define CPU_LOONGSON_2F 3002
+#define CPU_OCTEON     6501
 
 /* Test for membership in an ISA including chip specific ISAs.  INSN
    is pointer to an element of the opcode table; ISA is the specified
@@ -635,6 +640,8 @@ static const unsigned int mips_isa_table[] =
          && ((insn)->membership & INSN_LOONGSON_2E) != 0)               \
      || (cpu == CPU_LOONGSON_2F                                         \
          && ((insn)->membership & INSN_LOONGSON_2F) != 0)               \
+     || (cpu == CPU_OCTEON                                             \
+        && ((insn)->membership & INSN_OCTEON) != 0)                    \
      || 0)     /* Please keep this term for easier source merging.  */
 
 /* This is a list of macro expanded instructions.