* archures.c: Define bfd_mach_mips9000.
authorIan Lance Taylor <ian@airs.com>
Thu, 9 Dec 2004 06:08:45 +0000 (06:08 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 9 Dec 2004 06:08:45 +0000 (06:08 +0000)
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
(mips_set_isa_flags): Handle bfd_mach_mips9000.
* cpu-mips.c (I_mips9000): Define.
(arch_info_struct): Add case for bfd_mach_mips9000.
* aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
* bfd-in2.h: Regenerate.

bfd/ChangeLog
bfd/aoutx.h
bfd/archures.c
bfd/bfd-in2.h
bfd/cpu-mips.c
bfd/elfxx-mips.c

index 672f189..5b40903 100644 (file)
@@ -1,3 +1,13 @@
+2004-12-09  Ian Lance Taylor  <ian@wasabisystems.com>
+
+       * archures.c: Define bfd_mach_mips9000.
+       * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
+       (mips_set_isa_flags): Handle bfd_mach_mips9000.
+       * cpu-mips.c (I_mips9000): Define.
+       (arch_info_struct): Add case for bfd_mach_mips9000.
+       * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
+       * bfd-in2.h: Regenerate.
+
 2004-12-08  Ian Lance Taylor  <ian@wasabisystems.com>
 
        * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
index d629d80..34a2870 100644 (file)
@@ -793,6 +793,7 @@ NAME(aout,machine_type) (arch, machine, unknown)
        case bfd_mach_mips4600:
        case bfd_mach_mips4650:
        case bfd_mach_mips8000:
+       case bfd_mach_mips9000:
        case bfd_mach_mips10000:
        case bfd_mach_mips12000:
        case bfd_mach_mips16:
index 9a83fa4..b7fa3bc 100644 (file)
@@ -149,6 +149,7 @@ DESCRIPTION
 .#define bfd_mach_mips6000             6000
 .#define bfd_mach_mips7000             7000
 .#define bfd_mach_mips8000             8000
+.#define bfd_mach_mips9000             9000
 .#define bfd_mach_mips10000            10000
 .#define bfd_mach_mips12000            12000
 .#define bfd_mach_mips16               16
index b10883c..f603823 100644 (file)
@@ -1600,6 +1600,7 @@ enum bfd_architecture
 #define bfd_mach_mips6000              6000
 #define bfd_mach_mips7000              7000
 #define bfd_mach_mips8000              8000
+#define bfd_mach_mips9000              9000
 #define bfd_mach_mips10000             10000
 #define bfd_mach_mips12000             12000
 #define bfd_mach_mips16                16
index 01ecc4e..c32dc0b 100644 (file)
@@ -76,6 +76,7 @@ enum
   I_mips6000,
   I_mips7000,
   I_mips8000,
+  I_mips9000,
   I_mips10000,
   I_mips12000,
   I_mips16,
@@ -108,6 +109,7 @@ static const bfd_arch_info_type arch_info_struct[] =
   N (32, 32, bfd_mach_mips6000, "mips:6000",      FALSE, NN(I_mips6000)),
   N (64, 64, bfd_mach_mips7000, "mips:7000",      FALSE, NN(I_mips7000)),
   N (64, 64, bfd_mach_mips8000, "mips:8000",      FALSE, NN(I_mips8000)),
+  N (64, 64, bfd_mach_mips9000, "mips:9000",      FALSE, NN(I_mips9000)),
   N (64, 64, bfd_mach_mips10000,"mips:10000",     FALSE, NN(I_mips10000)),
   N (64, 64, bfd_mach_mips12000,"mips:12000",     FALSE, NN(I_mips12000)),
   N (64, 64, bfd_mach_mips16,   "mips:16",        FALSE, NN(I_mips16)),
index ae553b4..d246d41 100644 (file)
@@ -4023,6 +4023,9 @@ _bfd_elf_mips_mach (flagword flags)
     case E_MIPS_MACH_5500:
       return bfd_mach_mips5500;
 
+    case E_MIPS_MACH_9000:
+      return bfd_mach_mips9000;
+
     case E_MIPS_MACH_SB1:
       return bfd_mach_mips_sb1;
 
@@ -7073,6 +7076,10 @@ mips_set_isa_flags (bfd *abfd)
       val = E_MIPS_ARCH_4 | E_MIPS_MACH_5500;
       break;
 
+    case bfd_mach_mips9000:
+      val = E_MIPS_ARCH_4 | E_MIPS_MACH_9000;
+      break;
+
     case bfd_mach_mips5000:
     case bfd_mach_mips7000:
     case bfd_mach_mips8000:
@@ -8803,6 +8810,7 @@ static const struct mips_mach_extension mips_mach_extensions[] = {
   { bfd_mach_mips10000, bfd_mach_mips8000 },
   { bfd_mach_mips5000, bfd_mach_mips8000 },
   { bfd_mach_mips7000, bfd_mach_mips8000 },
+  { bfd_mach_mips9000, bfd_mach_mips8000 },
 
   /* VR4100 extensions.  */
   { bfd_mach_mips4120, bfd_mach_mips4100 },