From 9108bc33b1ca0b2e930c0cce5b1a0394e33e86be Mon Sep 17 00:00:00 2001 From: Chenghua Xu Date: Wed, 29 Aug 2018 20:55:25 +0800 Subject: [MIPS] Add Loongson 2K1000 proccessor support. bfd/ * archures.c (bfd_architecture): New machine bfd_mach_mips_gs264e. * bfd-in2.h (bfd_architecture): Likewise. * cpu-mips.c (enum I_xxx): Likewise. (arch_info_struct): Likewise. * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_GS264E. (mips_set_isa_flags): Likewise. (mips_mach_extensions): Map bfd_mach_mips_gs264e to bfd_mach_mips_gs464e extension. binutils/ * NEWS: Mention Loongson 2K1000 proccessor support. * readelf.c (get_machine_flags): Handle gs264e. elfcpp/ * mips.c (EF_MIPS_MACH): New E_MIPS_MACH_GS264E. gas/ * config/tc-mips.c (ISA_HAS_ODD_SINGLE_FPR): Exclude CPU_GS264E. (mips_cpu_info_table): Add gs264e descriptors. * doc/as.texi (march table): Add gs264e. include/ * elf/mips.h (E_MIPS_MACH_XXX): New E_MIPS_MACH_GS264E. * opcode/mips.h (CPU_XXX): New CPU_GS264E. ld/ * testsuite/ld-mips-elf/mips-elf-flags.exp: Run good_combination gs264e and gs464e. opcodes/ * mips-dis.c (mips_arch_choices): Add gs264e descriptors. --- gold/mips.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gold') diff --git a/gold/mips.cc b/gold/mips.cc index 12aa7de..0123fd7 100644 --- a/gold/mips.cc +++ b/gold/mips.cc @@ -3984,6 +3984,7 @@ class Target_mips : public Sized_target mach_mips_loongson_2f = 3002, mach_mips_gs464 = 3003, mach_mips_gs464e = 3004, + mach_mips_gs264e = 3005, mach_mips_sb1 = 12310201, // octal 'SB', 01 mach_mips_octeon = 6501, mach_mips_octeonp = 6601, @@ -4149,6 +4150,7 @@ class Target_mips : public Sized_target this->add_extension(mach_mips_octeon2, mach_mips_octeonp); this->add_extension(mach_mips_octeonp, mach_mips_octeon); this->add_extension(mach_mips_octeon, mach_mipsisa64r2); + this->add_extension(mach_mips_gs264e, mach_mips_gs464e); this->add_extension(mach_mips_gs464e, mach_mips_gs464); this->add_extension(mach_mips_gs464, mach_mipsisa64r2); @@ -8866,6 +8868,9 @@ Target_mips::elf_mips_mach(elfcpp::Elf_Word flags) case elfcpp::E_MIPS_MACH_GS464E: return mach_mips_gs464e; + case elfcpp::E_MIPS_MACH_GS264E: + return mach_mips_gs264e; + case elfcpp::E_MIPS_MACH_OCTEON3: return mach_mips_octeon3; @@ -12533,6 +12538,8 @@ Target_mips::elf_mips_mach_name(elfcpp::Elf_Word e_flags) return "mips:gs464"; case elfcpp::E_MIPS_MACH_GS464E: return "mips:gs464e"; + case elfcpp::E_MIPS_MACH_GS264E: + return "mips:gs264e"; case elfcpp::E_MIPS_MACH_OCTEON: return "mips:octeon"; case elfcpp::E_MIPS_MACH_OCTEON2: -- cgit v1.1