Skip to contentSkip to conversation

prevent string instructions for FLS_BOOKE

PATCH In review Akinobu Mita 1 participant 1 message Apr 10, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 prevent string instructions for FLS_BOOKE

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.

arch/powerpc/Makefile +4 -0
Index: 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