aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-10-21 20:05:25 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-10-30 01:01:50 -0400
commit686245bee9528a2f62fa88b1f776eacd94d858ee (patch)
treee0915c5d4c4661dfb83bcbb75786b4707553ad31
parent733187e29576041ceccf3b82092ca900fc929170 (diff)
powerpc: Use -mcpu=power7 on ppc64 little endian builds
Using -mcpu=power7 allows gcc to use a number of new instructions including 64 bit byte reversed loads. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--arch/powerpc/platforms/Kconfig.cputype9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index 6704e2e20e6b..c2a566fb8bb8 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -93,22 +93,23 @@ choice
93 93
94config GENERIC_CPU 94config GENERIC_CPU
95 bool "Generic" 95 bool "Generic"
96 depends on !CPU_LITTLE_ENDIAN
96 97
97config CELL_CPU 98config CELL_CPU
98 bool "Cell Broadband Engine" 99 bool "Cell Broadband Engine"
99 depends on PPC_BOOK3S_64 100 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
100 101
101config POWER4_CPU 102config POWER4_CPU
102 bool "POWER4" 103 bool "POWER4"
103 depends on PPC_BOOK3S_64 104 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
104 105
105config POWER5_CPU 106config POWER5_CPU
106 bool "POWER5" 107 bool "POWER5"
107 depends on PPC_BOOK3S_64 108 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
108 109
109config POWER6_CPU 110config POWER6_CPU
110 bool "POWER6" 111 bool "POWER6"
111 depends on PPC_BOOK3S_64 112 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
112 113
113config POWER7_CPU 114config POWER7_CPU
114 bool "POWER7" 115 bool "POWER7"