Skip to contentSkip to conversation

85xx: Add -mno-spe to e500/85xx builds

PATCH New Kumar Gala 2 participants 2 messages Apr 29, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 85xx: Add -mno-spe to e500/85xx builds

Newer gcc's might be configured to enable autovectorization by default. If we happen to build with one of those compilers we will get SPE instructions in random code.

-mno-spe disables the compiler for automatically generating SPE instructions without our knowledge.

---
 cpu/mpc85xx/config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
cpu/mpc85xx/config.mk +1 -0
index f6df702..9e574a2 100644
@@ -25,3 +25,4 @@ PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 
 PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 \
 			-Wa,-me500 -msoft-float -mno-string
+PLATFORM_CPPFLAGS +=$(call cc-option,-mno-spe)
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 85xx: Add -mno-spe to e500/85xx builds

Quoted 11 lines · In message <[email protected]> you wrote:

Newer gcc's might be configured to enable autovectorization by default. If we happen to build with one of those compilers we will get SPE instructions in random code.

-mno-spe disables the compiler for automatically generating SPE instructions without our knowledge.

---
 cpu/mpc85xx/config.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The universe is all a spin-off of the Big Bang.