From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gw.fixstars.com (122x208x5x10.ap122.ftth.ucom.ne.jp [122.208.5.10]) by ozlabs.org (Postfix) with ESMTP id DBC29DE031 for ; Fri, 23 Mar 2007 23:27:51 +1100 (EST) Date: Fri, 23 Mar 2007 21:06:19 +0900 From: Akinobu Mita To: Segher Boessenkool Subject: [PATCH] force -mno-string option on cell Message-ID: <20070323120619.GA7472@localhost.localdomain> References: <1174544624.10836.24.camel@localhost.localdomain> <94d8e19d4b061504fcfd08d1ab70cc78@kernel.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <94d8e19d4b061504fcfd08d1ab70cc78@kernel.crashing.org> Cc: Paul Mackerras , cbe-oss-dev@ozlabs.org, Arnd Bergmann , linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , GCC may generate inline copy loop to handle memcpy() function instead of kernel defined memcpy() with -mstring or -Os. But this inlined version of memcpy() caused an alignment interrupt when copying from SPU local store on PS3. (http://ozlabs.org/pipermail/cbe-oss-dev/2007-March/001348.html) This patch deletes -mstring option on all powerpc and force -mno-string option on Cell. Cc: Arnd Bergmann Cc: Paul Mackerras Signed-off-by: Akinobu Mita --- arch/powerpc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: 2.6-git-ps3/arch/powerpc/Makefile =================================================================== --- 2.6-git-ps3.orig/arch/powerpc/Makefile +++ 2.6-git-ps3/arch/powerpc/Makefile @@ -102,8 +102,9 @@ CFLAGS += $(call cc-option,-mno-altivec) # kernel considerably. CFLAGS += $(call cc-option,-funit-at-a-time) -ifndef CONFIG_FSL_BOOKE -CFLAGS += -mstring +# No string instruction for SPE local store areas +ifeq ($(CONFIG_PPC_CELL),y) +CFLAGS += -mno-string endif ifeq ($(CONFIG_6xx),y)