Skip to contentSkip to conversation

sparc32: Pass -mcpu=v7 explicitly to gcc.

PATCH In review David Miller 2 participants 3 messages May 12, 2012 – May 13, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 sparc32: Pass -mcpu=v7 explicitly to gcc.

We should be agnostic to what gcc happens to be generating by default.

---
 arch/sparc/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/Makefile +1 -1
index eddcfb3..cd2afcc 100644
@@ -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
Signature · 1 line
1.7.10
#1 lore raw
Quoted 2 lines · David Miller

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

author maintainer
#2 lore raw
In reply to David Miller

From: Tom Callaway <[email protected]>
Date: Sat, 12 May 2012 20:27:45 -0400

Quoted 5 lines · David Miller
Quoted 2 lines

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.