This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] MIPS: Move Loongson 2E/2F entries.
- From: Maxim Kuvyrkov <maxim at codesourcery dot com>
- To: binutils <binutils at sourceware dot org>
- Cc: Eric Christopher <echristo at apple dot com>, Daniel Jacobowitz <dan at codesourcery dot com>
- Date: Wed, 28 May 2008 13:38:14 +0400
- Subject: [PATCH] MIPS: Move Loongson 2E/2F entries.
Hello,
Here is an obvious patch to properly place entries for Loongson 2E/2F
cores in mips_cpu_info_table. Loongson is a MIPS III architecture, so
it doesn't make much sense for it to be among MIPS64 CPUs.
I don't have write access to binutils repository, so please apply the
patch if it is OK.
Thanks,
Maxim Kuvyrkov
CodeSourcery Inc.
2008-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/tc-mips.c (mips_cpu_info_table): Move records for
ST Loongson-2E/2F processors to a better place.
Index: config/tc-mips.c
===================================================================
RCS file: config/tc-mips.c,v
retrieving revision 1.385
diff -u -p -r1.385 tc-mips.c
--- config/tc-mips.c 9 May 2008 19:28:47 -0000 1.385
+++ config/tc-mips.c 28 May 2008 09:15:32 -0000
@@ -14829,6 +14829,9 @@ static const struct mips_cpu_info mips_c
{ "r4600", 0, ISA_MIPS3, CPU_R4600 },
{ "orion", 0, ISA_MIPS3, CPU_R4600 },
{ "r4650", 0, ISA_MIPS3, CPU_R4650 },
+ /* ST Microelectronics Loongson 2E and 2F cores */
+ { "loongson2e", 0, ISA_MIPS3, CPU_LOONGSON_2E },
+ { "loongson2f", 0, ISA_MIPS3, CPU_LOONGSON_2F },
/* MIPS IV */
{ "r8000", 0, ISA_MIPS4, CPU_R8000 },
@@ -14919,10 +14922,6 @@ static const struct mips_cpu_info mips_c
{ "sb1a", MIPS_CPU_ASE_MIPS3D | MIPS_CPU_ASE_MDMX,
ISA_MIPS64, CPU_SB1 },
- /* ST Microelectronics Loongson 2E and 2F cores */
- { "loongson2e", 0, ISA_MIPS3, CPU_LOONGSON_2E },
- { "loongson2f", 0, ISA_MIPS3, CPU_LOONGSON_2F },
-
/* Cavium Networks Octeon CPU core */
{ "octeon", 0, ISA_MIPS64R2, CPU_OCTEON },