aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-12-19 22:46:22 +0100
committerTom Rini <trini@konsulko.com>2022-12-22 10:40:36 -0500
commite340720f7ea387527e0704162a732b7416efd894 (patch)
tree67a35f61b3c2ec09bd51f92e86f9b6631fbebbf9
parent925a4aec9315e2bccdfbdc05026b3a11d25aa711 (diff)
downloadu-boot-e340720f7ea387527e0704162a732b7416efd894.zip
u-boot-e340720f7ea387527e0704162a732b7416efd894.tar.gz
u-boot-e340720f7ea387527e0704162a732b7416efd894.tar.bz2
powerpc/mpc85xx: Disable AltiVec and VSX instructions
All vector instructions on powerpc mpc85xx must not be used because U-Boot does not enable them. Usage cause random crashes. SPE vector instructions are already disabled by compiler flags, so disable also AltiVec and VSX vector instructions. Linux kernel disables AltiVec and VSX instructions too. Signed-off-by: Pali Rohár <pali@kernel.org>
-rw-r--r--arch/powerpc/cpu/mpc85xx/config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/config.mk b/arch/powerpc/cpu/mpc85xx/config.mk
index 482bb90..71a98f0 100644
--- a/arch/powerpc/cpu/mpc85xx/config.mk
+++ b/arch/powerpc/cpu/mpc85xx/config.mk
@@ -13,6 +13,10 @@ PLATFORM_RELFLAGS += -msingle-pic-base -fno-jump-tables
PLATFORM_CPPFLAGS += $(call cc-option,-mno-spe) \
$(call cc-option,-mspe=no)
+# No AltiVec or VSX instructions when building u-boot
+PLATFORM_CPPFLAGS += $(call cc-option,-mno-altivec)
+PLATFORM_CPPFLAGS += $(call cc-option,-mno-vsx)
+
ifdef CONFIG_E6500
PLATFORM_CPPFLAGS += -mcpu=e6500
else ifdef CONFIG_E5500