]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix GENERIC_CPU build flags for PPC970 / G5
authorNicholas Piggin <npiggin@gmail.com>
Wed, 21 Sep 2022 01:41:02 +0000 (11:41 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:45 +0000 (13:22 +0200)
commit8e0bf9e9fe387d39bf84989acff3f2bf51cc37b0
treede72e22c99eb980a3c2a4111f1918b6111146492
parent6c27bb11988334a8dae718dabce5f4e6c9a7d96b
powerpc/64s: Fix GENERIC_CPU build flags for PPC970 / G5

[ Upstream commit 26cdaee976981233a5bd76fda2ba1ca1ce15b142 ]

Big-endian GENERIC_CPU supports 970, but builds with -mcpu=power5.
POWER5 is ISA v2.02 whereas 970 is v2.01 plus Altivec. 2.02 added
the popcntb instruction which a compiler might use.

Use -mcpu=power4.

Fixes: d00b0f675bda ("powerpc/64s: Remove POWER4 support")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921014103.587954-1-npiggin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/Makefile