From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id BC5BDDDF52 for ; Thu, 22 Mar 2007 17:24:01 +1100 (EST) Subject: [PATCH] powerpc: Always use -mno-string From: Benjamin Herrenschmidt To: Paul Mackerras Content-Type: text/plain Date: Thu, 22 Mar 2007 17:23:44 +1100 Message-Id: <1174544624.10836.24.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev list , Akinobu Mita List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The string load/store instructions are causing more damage than help on a lot of processors where they are microcoded and are generally not good for the kernel to use. Let's make sure we don't emit them on any powerpc variant. Signed-off-by: Benjamin Herrenschmidt --- Ok, let's keep load/store multiple, they are only used on 32 bits and are actually useful. string instructions are not though. Index: linux-cell/arch/powerpc/Makefile =================================================================== --- linux-cell.orig/arch/powerpc/Makefile 2007-03-22 17:02:42.000000000 +1100 +++ linux-cell/arch/powerpc/Makefile 2007-03-22 17:19:28.000000000 +1100 @@ -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