Skip to contentSkip to conversation

powerpc/boot: Explicitly disable usage of SPE instructions

PATCH Applied Pali Rohár 2 participants 2 messages Aug 27, 2022 – Oct 4, 2022 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/boot: Explicitly disable usage of SPE instructions

uImage boot wrapper should not use SPE instructions, like kernel itself. Boot wrapper has already disabled Altivec and VSX instructions but not SPE. Options -mno-spe and -mspe=no already set when compilation of kernel, but not when compiling uImage wrapper yet. Fix it.

---
 arch/powerpc/boot/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/boot/Makefile +1 -0
index f56a5f90a5d8..2247374c4e70 100644
@@ -34,6 +34,7 @@ endif
 
 BOOTCFLAGS    := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
 		 -fno-strict-aliasing -O2 -msoft-float -mno-altivec -mno-vsx \
+		 $(call cc-option,-mno-spe) $(call cc-option,-mspe=no) \
 		 -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
 		 $(LINUXINCLUDE)
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 6 lines · Pali Rohár

uImage boot wrapper should not use SPE instructions, like kernel itself. Boot wrapper has already disabled Altivec and VSX instructions but not SPE. Options -mno-spe and -mspe=no already set when compilation of kernel, but not when compiling uImage wrapper yet. Fix it.

Applied to powerpc/next.

[1/1] powerpc/boot: Explicitly disable usage of SPE instructions

      https://git.kernel.org/powerpc/c/110a58b9f91c66f743c01a2c217243d94c899c23

cheers