From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E216FC4332F for ; Mon, 19 Dec 2022 21:46:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA00384F87; Mon, 19 Dec 2022 22:46:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="mZ9Yu6p/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 19D3584D94; Mon, 19 Dec 2022 22:46:44 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B92EF8530E for ; Mon, 19 Dec 2022 22:46:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7B42561156; Mon, 19 Dec 2022 21:46:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78C8AC433EF; Mon, 19 Dec 2022 21:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671486399; bh=O78pe+bEkvY1wb4CncTg2h3PvdY9LnlPm9CgbTZsErQ=; h=From:To:Cc:Subject:Date:From; b=mZ9Yu6p/aBbDjPvQZJDBYTqjtnhYP9D3YzdOwUfgiiV9dZa+MfQ1lIPtf9boyOmfy tosC3Wd2CXaZf8hHfYUldqgqNKLk+FkmYNAyoa1y0KdC8hDKeQLGjFRNK96UNPWC20 Mgz5tT4vfmED0bUwTpdqVuUWG8N+8/vawhNpv4QVfPWhuGEIwiztMebCBbMhSDPly7 lc1Eo781agGV8f624OB+HFaqMUVssIOTmEZXi56/4QLP6dZsqEJorXh2JljdKfB/54 A0LjjTTgif9+rLQxrwzLPNLazkVO1PGBK+FDdbNja4O3h8BeK6uHs7sL+yhhbUI0Yj XVtE920epm8Qg== Received: by pali.im (Postfix) id B4415858; Mon, 19 Dec 2022 22:46:36 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Tom Rini Cc: u-boot@lists.denx.de Subject: [PATCH u-boot] powerpc/mpc85xx: Disable AltiVec and VSX instructions Date: Mon, 19 Dec 2022 22:46:22 +0100 Message-Id: <20221219214622.20929-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 482bb90cb120..71a98f05c902 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.20.1