This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH RFA] add MIPS mipsisa64sb1{,el}-*-elf* configurations.
- From: cgd at broadcom dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: 01 Aug 2002 10:39:33 -0700
- Subject: [PATCH RFA] add MIPS mipsisa64sb1{,el}-*-elf* configurations.
(Tested with a build for mipsisa64sb1-elf, checked with mips-sim-idt64
for sanity.)
2002-08-01 Chris Demetriou <cgd@broadcom.com>
* config.gcc (mipsisa64sb1-*-elf*): New configuration.
(mipsisa64sb1el-*-elf*): Likewise.
* config/mips/mips.c (mips_cpu_info_table): Add sb1.
* config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
(TARGET_SB1, TUNE_SB1): New macros.
* doc/invoke.texi: Add sb1 to documentation for MIPS -march and
-mtune flags.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.230
diff -u -p -r1.230 config.gcc
--- config.gcc 31 Jul 2002 23:18:38 -0000 1.230
+++ config.gcc 1 Aug 2002 17:33:57 -0000
@@ -1905,6 +1905,12 @@ mipsisa64-*-elf* | mipsisa64el-*-elf*)
target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_MEABI"
;;
+mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
+ tm_file="${tm_file} mips/elf.h mips/abi64.h"
+ tmake_file=mips/t-elf
+ target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
+ tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
+ ;;
mips-*-elf* | mipsel-*-elf*)
tm_file="${tm_file} mips/elf.h"
tmake_file=mips/t-elf
Index: config/mips/mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.219
diff -u -p -r1.219 mips.c
--- config/mips/mips.c 29 Jul 2002 22:21:41 -0000 1.219
+++ config/mips/mips.c 1 Aug 2002 17:34:00 -0000
@@ -610,6 +610,9 @@ const struct mips_cpu_info mips_cpu_info
{ "5kc", PROCESSOR_R5KC, 64 },
{ "20kc", PROCESSOR_R20KC, 64 },
+ /* Broadcom SB-1 CPU core */
+ { "sb1", PROCESSOR_SB1, 64 },
+
/* End marker */
{ 0, 0, 0 }
};
Index: config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.206
diff -u -p -r1.206 mips.h
--- config/mips/mips.h 31 Jul 2002 02:13:31 -0000 1.206
+++ config/mips/mips.h 1 Aug 2002 17:34:01 -0000
@@ -70,7 +70,8 @@ enum processor_type {
PROCESSOR_R8000,
PROCESSOR_R4KC,
PROCESSOR_R5KC,
- PROCESSOR_R20KC
+ PROCESSOR_R20KC,
+ PROCESSOR_SB1
};
/* Recast the cpu class to be the cpu attribute. */
@@ -352,6 +353,7 @@ extern void sbss_section PARAMS ((void)
#define TARGET_MIPS4300 (mips_arch == PROCESSOR_R4300)
#define TARGET_MIPS4KC (mips_arch == PROCESSOR_R4KC)
#define TARGET_MIPS5KC (mips_arch == PROCESSOR_R5KC)
+#define TARGET_SB1 (mips_arch == PROCESSOR_SB1)
/* Scheduling target defines. */
#define TUNE_MIPS3000 (mips_tune == PROCESSOR_R3000)
@@ -359,6 +361,7 @@ extern void sbss_section PARAMS ((void)
#define TUNE_MIPS4000 (mips_tune == PROCESSOR_R4000)
#define TUNE_MIPS5000 (mips_tune == PROCESSOR_R5000)
#define TUNE_MIPS6000 (mips_tune == PROCESSOR_R6000)
+#define TUNE_SB1 (mips_tune == PROCESSOR_SB1)
/* Define preprocessor macros for the -march and -mtune options.
PREFIX is either _MIPS_ARCH or _MIPS_TUNE, INFO is the selected
Index: doc/invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.164
diff -u -p -r1.164 invoke.texi
--- doc/invoke.texi 30 Jul 2002 22:23:24 -0000 1.164
+++ doc/invoke.texi 1 Aug 2002 17:34:02 -0000
@@ -7006,8 +7006,8 @@ are: @samp{mips1}, @samp{mips2}, @samp{m
and @samp{mips64}. The processor names are: @samp{r2000},
@samp{r3000}, @samp{r3900}, @samp{r4000}, @samp{vr4100}, @samp{vr4300},
@samp{r4400}, @samp{r4600}, @samp{r4650}, @samp{vr5000}, @samp{r6000},
-@samp{r8000}, @samp{4kc}, @samp{4kp}, @samp{5kc}, @samp{20kc}
-and @samp{orion}. The special value @samp{from-abi} selects the
+@samp{r8000}, @samp{4kc}, @samp{4kp}, @samp{5kc}, @samp{20kc},
+@samp{orion}, and @samp{sb1}. The special value @samp{from-abi} selects the
most compatible architecture for the selected ABI (that is,
@samp{mips1} for 32-bit ABIs and @samp{mips3} for 64-bit ABIs)@.