From 1db706edcd72724a6f18228d42b26e6b8e9e51ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Mon, 19 Dec 2022 22:46:22 +0100 Subject: [PATCH] powerpc/mpc85xx: Disable AltiVec and VSX instructions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- arch/powerpc/cpu/mpc85xx/config.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/cpu/mpc85xx/config.mk b/arch/powerpc/cpu/mpc85xx/config.mk index 482bb90cb1..71a98f05c9 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 -- 2.39.5