[binutils-gdb] MIPS: Correct LSI CW4010 classification for a.out/gold
Maciej W. Rozycki
macro@sourceware.org
Sun Nov 8 18:44:37 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d98d79362f2c93a0214acd4977dcdc3fb268670b
commit d98d79362f2c93a0214acd4977dcdc3fb268670b
Author: Maciej W. Rozycki <macro@orcam.me.uk>
Date: Sun Nov 8 18:16:18 2026 +0000
MIPS: Correct LSI CW4010 classification for a.out/gold
Complement commit b417536f2350 ("MIPS/BFD: Consistently mark the LSI
CW4010 as a MIPS II processor") and also correct the classification of
the LSI MiniRISC CW4010 processor core to MIPS II for a.out and in gold.
Diff:
---
bfd/aoutx.h | 2 +-
gold/mips.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index a1b9a59e36f..bf20a91a1a6 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -785,10 +785,10 @@ NAME (aout, machine_type) (enum bfd_architecture arch,
arch_flags = M_MIPS1;
break;
case bfd_mach_mips6000:
+ case bfd_mach_mips4010:
arch_flags = M_MIPS2;
break;
case bfd_mach_mips4000:
- case bfd_mach_mips4010:
case bfd_mach_mips4100:
case bfd_mach_mips4300:
case bfd_mach_mips4400:
diff --git a/gold/mips.cc b/gold/mips.cc
index 8a82f11062f..f823d59b0f2 100644
--- a/gold/mips.cc
+++ b/gold/mips.cc
@@ -4194,7 +4194,6 @@ class Target_mips : public Sized_target<size, big_endian>
this->add_extension(mach_mips4400, mach_mips4000);
this->add_extension(mach_mips4300, mach_mips4000);
this->add_extension(mach_mips4100, mach_mips4000);
- this->add_extension(mach_mips4010, mach_mips4000);
this->add_extension(mach_mips5900, mach_mips4000);
// MIPS32 extensions.
@@ -4203,6 +4202,7 @@ class Target_mips : public Sized_target<size, big_endian>
// MIPS II extensions.
this->add_extension(mach_mips4000, mach_mips6000);
this->add_extension(mach_mipsisa32, mach_mips6000);
+ this->add_extension(mach_mips4010, mach_mips6000);
// MIPS I extensions.
this->add_extension(mach_mips6000, mach_mips3000);
More information about the Binutils-cvs
mailing list