This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Add -march support for MIPS 1004K cores
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Fri, 31 Jul 2009 12:45:45 -0400
- Subject: PATCH: Add -march support for MIPS 1004K cores
The attached patch adds -march support for MIPS 1004K cores. The 1004K is
approximately a 34K adapted for SMP so I have just copied all the existing bits
that reference the 34K. It has similar variants as the 34K:
1004Kc = integer only
1004Kf2_1 = half-speed FPU
1004Kf1_1 = full-speed FPU
1004Kf = alias for 1004Kf2_1
OK to commit?
-Sandra
2009-07-30 Sandra Loosemore <sandra@codesourcery.com>
gas/
* doc/c-mips.texi (MIPS Opts): List 1004K options for -march.
* config/tc-mips.c (mips_cpu_info_table): Add 1004K cores.
Index: gas/doc/c-mips.texi
===================================================================
--- gas/doc/c-mips.texi (revision 257328)
+++ gas/doc/c-mips.texi (working copy)
@@ -272,6 +272,10 @@ m4kp,
74kf,
74kf1_1,
74kf3_2,
+1004kc,
+1004kf2_1,
+1004kf,
+1004kf1_1,
5kc,
5kf,
20kc,
Index: gas/config/tc-mips.c
===================================================================
--- gas/config/tc-mips.c (revision 257328)
+++ gas/config/tc-mips.c (working copy)
@@ -15402,6 +15402,15 @@ static const struct mips_cpu_info mips_c
ISA_MIPS32R2, CPU_MIPS32R2 },
{ "74kx", MIPS_CPU_ASE_DSP | MIPS_CPU_ASE_DSPR2,
ISA_MIPS32R2, CPU_MIPS32R2 },
+ /* 1004K cores are multiprocessor versions of the 34K. */
+ { "1004kc", MIPS_CPU_ASE_DSP | MIPS_CPU_ASE_MT,
+ ISA_MIPS32R2, CPU_MIPS32R2 },
+ { "1004kf2_1", MIPS_CPU_ASE_DSP | MIPS_CPU_ASE_MT,
+ ISA_MIPS32R2, CPU_MIPS32R2 },
+ { "1004kf", MIPS_CPU_ASE_DSP | MIPS_CPU_ASE_MT,
+ ISA_MIPS32R2, CPU_MIPS32R2 },
+ { "1004kf1_1", MIPS_CPU_ASE_DSP | MIPS_CPU_ASE_MT,
+ ISA_MIPS32R2, CPU_MIPS32R2 },
/* MIPS 64 */
{ "5kc", 0, ISA_MIPS64, CPU_MIPS64 },