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 10:35:23 +0000 (12:35 +0200)
commit72c5b7110fba4f1a1a45462ecbd339a967440b30
tree23610f2ae40a6cbc2d2576c548d6446eeb76ff09
parent399afe92f6409fd2130e4ffd17a38b426975c02f
powerpc/64s: Fix GENERIC_CPU build flags for PPC970 / G5

[ Upstream commit 58ec7f06b74e0d6e76c4110afce367c8b5f0837d ]

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: 471d7ff8b51b ("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