powerpc: Use -mcpu=power7 on ppc64 little endian builds
authorAnton Blanchard <anton@samba.org>
Tue, 22 Oct 2013 00:05:25 +0000 (11:05 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Oct 2013 05:01:50 +0000 (16:01 +1100)
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>
arch/powerpc/platforms/Kconfig.cputype

index 6704e2e20e6be1598cf92a990fac17c52144dc51..c2a566fb8bb89cc816b8841fe47fcdf35b222836 100644 (file)
@@ -93,22 +93,23 @@ choice
 
 config GENERIC_CPU
        bool "Generic"
+       depends on !CPU_LITTLE_ENDIAN
 
 config CELL_CPU
        bool "Cell Broadband Engine"
-       depends on PPC_BOOK3S_64
+       depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
 
 config POWER4_CPU
        bool "POWER4"
-       depends on PPC_BOOK3S_64
+       depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
 
 config POWER5_CPU
        bool "POWER5"
-       depends on PPC_BOOK3S_64
+       depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
 
 config POWER6_CPU
        bool "POWER6"
-       depends on PPC_BOOK3S_64
+       depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
 
 config POWER7_CPU
        bool "POWER7"