[patch 2/3] prevent string instructions for FLS_BOOKE

Akinobu Mita mita at fixstars.com
Tue Apr 10 21:14:02 EST 2007


I don't know what is the issue for FSL BookE on -mstring option.

But GCC is now putting string instructions even if you don't
specify -mstring. This patch adds -mno-string option for FLS_BOOKE
and prevents string instruction.

Signed-off-by: Akinobu Mita <mita at fixstars.com>

Index: 2.6-git-ps3/arch/powerpc/Makefile
===================================================================
--- 2.6-git-ps3.orig/arch/powerpc/Makefile
+++ 2.6-git-ps3/arch/powerpc/Makefile
@@ -102,6 +102,10 @@ CFLAGS += $(call cc-option,-mno-altivec)
 # kernel considerably.
 CFLAGS += $(call cc-option,-funit-at-a-time)
 
+ifeq ($(CONFIG_FSL_BOOKE),y)
+CFLAGS         += -mno-string
+endif
+
 ifeq ($(CONFIG_6xx),y)
 CFLAGS		+= -mcpu=powerpc
 endif



More information about the Linuxppc-dev mailing list