]> 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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:10 +0000 (19:22 +1000)
commit5ffbc6112c348dcc3957da2d529eb530dbecc0d5
tree6dba67f69d3106df93ec6df1103cfc92f9052bd4
parentcfa3ae913769130b3adc27bdf0f12ad61b54eacb
powerpc/64s: Fix GENERIC_CPU build flags for PPC970 / G5

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: 3dbb88474178 ("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
arch/powerpc/Makefile