Commit 110a58b9 authored by Pali Rohár's avatar Pali Rohár Committed by Michael Ellerman
Browse files

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.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220827134454.17365-1-pali@kernel.org
parent c1024320
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -34,6 +34,7 @@ endif


BOOTCFLAGS    := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
BOOTCFLAGS    := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
		 -fno-strict-aliasing -O2 -msoft-float -mno-altivec -mno-vsx \
		 -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 \
		 -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
		 $(LINUXINCLUDE)
		 $(LINUXINCLUDE)