Patchwork sparc32: Pass -mcpu=v7 explicitly to gcc.

login
register
mail settings
Submitter David Miller
Date May 12, 2012, 10:20 p.m.
Message ID <20120512.182057.119046891010844835.davem@davemloft.net>
Download mbox | patch
Permalink /patch/158787/
State Accepted
Delegated to: David Miller
Headers show

Comments

David Miller - May 12, 2012, 10:20 p.m.
We should be agnostic to what gcc happens to be generating by default.

Signed-off-by: David S. Miller <davem@davemloft.net>
---
 arch/sparc/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tom \"spot\" Callaway - May 13, 2012, 12:27 a.m.
On 05/12/2012 06:20 PM, David Miller wrote:
> 
> We should be agnostic to what gcc happens to be generating by default.

If you're dropping sun4c, why not -mcpu=v8?

~tom

==
Fedora Project
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - May 13, 2012, 1:23 a.m.
From: Tom Callaway <tcallawa@redhat.com>
Date: Sat, 12 May 2012 20:27:45 -0400

> On 05/12/2012 06:20 PM, David Miller wrote:
>> 
>> We should be agnostic to what gcc happens to be generating by default.
> 
> If you're dropping sun4c, why not -mcpu=v8?

We cannot generate hardware multiply and divisde instructions until
we remove Cypress support.

Cypress is a sun4m chip but like sun4c it lacks HW integer multiply
and divide.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index eddcfb3..cd2afcc 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -30,7 +30,7 @@  export BITS    := 32
 UTS_MACHINE    := sparc
 
 #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7
-KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
+KBUILD_CFLAGS += -m32 -mcpu=v7 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
 KBUILD_AFLAGS += -m32 -Wa,-Av8
 
 #LDFLAGS_vmlinux = -N -Ttext 0xf0004000