]> err.no Git - linux-2.6/commitdiff
[POWERPC] Always use -mno-string
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 22 Mar 2007 06:23:44 +0000 (17:23 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 27 Apr 2007 11:13:35 +0000 (21:13 +1000)
The string load/store instructions are unimplemented on some processors
and slow (microcoded) on some others.  It's simplest to just not use
them at all.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Makefile

index e6c3addef398bffbdf92567012d1101e28a690c4..26788de1cc59e09c9c6d23eac8401daf623f3778 100644 (file)
@@ -102,9 +102,9 @@ CFLAGS += $(call cc-option,-mno-altivec)
 # kernel considerably.
 CFLAGS += $(call cc-option,-funit-at-a-time)
 
-ifndef CONFIG_FSL_BOOKE
-CFLAGS         += -mstring
-endif
+# Never use string load/store instructions as they are
+# often slow when they are implemented at all
+CFLAGS         += -mno-string
 
 ifeq ($(CONFIG_6xx),y)
 CFLAGS         += -mcpu=powerpc