aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2009-07-02 11:27:41 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 14:07:47 -0400
commit3702bba5eb4f7a0c89107089af6fd9bc2966b65a (patch)
treeab2a7c8a0a88d7fb2ade98d42d24655370537640 /arch/mips/Kconfig
parent3209e70e5ed1821be8d9b87fe9e8bd6cffa4b4c7 (diff)
MIPS: Loongson: Add GCC 4.4 support for Loongson2E
Because only gcc >=4.4 have loongson-specific support, we need to choose the suitable -march argument for gcc <= 4.3 and gcc >= 4.4, and here, we use -march=loongson2e for loongson2e. Thanks goes to Arnaud Patard <apatard@mandriva.com> for suggestion of using cc-options(Documentation/kbuild/makefiles.txt). and thanks Zhang Le for introducing the new CPU_LOONGSON2E kernel option. NOTE: -mtune option is not need if -march and -mtune use the same value. Signed-off-by: Zhang Le <r0bertz@gentoo.org> Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r--arch/mips/Kconfig18
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 482dcc3b91e1..466920aa067f 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1030,12 +1030,10 @@ choice
1030 prompt "CPU type" 1030 prompt "CPU type"
1031 default CPU_R4X00 1031 default CPU_R4X00
1032 1032
1033config CPU_LOONGSON2 1033config CPU_LOONGSON2E
1034 bool "Loongson 2" 1034 bool "Loongson 2E"
1035 depends on SYS_HAS_CPU_LOONGSON2 1035 depends on SYS_HAS_CPU_LOONGSON2E
1036 select CPU_SUPPORTS_32BIT_KERNEL 1036 select CPU_LOONGSON2
1037 select CPU_SUPPORTS_64BIT_KERNEL
1038 select CPU_SUPPORTS_HIGHMEM
1039 help 1037 help
1040 The Loongson 2E processor implements the MIPS III instruction set 1038 The Loongson 2E processor implements the MIPS III instruction set
1041 with many extensions. 1039 with many extensions.
@@ -1282,7 +1280,13 @@ config CPU_CAVIUM_OCTEON
1282 1280
1283endchoice 1281endchoice
1284 1282
1285config SYS_HAS_CPU_LOONGSON2 1283config CPU_LOONGSON2
1284 bool
1285 select CPU_SUPPORTS_32BIT_KERNEL
1286 select CPU_SUPPORTS_64BIT_KERNEL
1287 select CPU_SUPPORTS_HIGHMEM
1288
1289config SYS_HAS_CPU_LOONGSON2E
1286 bool 1290 bool
1287 1291
1288config SYS_HAS_CPU_MIPS32_R1 1292config SYS_HAS_CPU_MIPS32_R1