util: fix build with musl libc on ppc64le
authorNatanael Copa <ncopa@alpinelinux.org>
Tue, 19 Dec 2023 10:51:29 +0000 (11:51 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 10 Jan 2024 21:48:16 +0000 (08:48 +1100)
commit1d513e06d96697f44de4a1b85c6ff627c443e306
tree6e422b8d6115fd2a9a1269576ba5bb6d3750b3f4
parentca5bed07d0e7e0530c2cafbc134c4f74e582ac50
util: fix build with musl libc on ppc64le

Use PPC_FEATURE2_ISEL and PPC_FEATURE2_VEC_CRYPTO from linux headers
instead of the GNU specific PPC_FEATURE2_HAS_ISEL and
PPC_FEATURE2_HAS_VEC_CRYPTO. This fixes build with musl libc.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1861
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Fixes: 63922f467a ("tcg/ppc: Replace HAVE_ISEL macro with a variable")
Fixes: 68f340d4cd ("tcg/ppc: Enable Altivec detection")
Message-Id: <20231219105236.7059-1-ncopa@alpinelinux.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
util/cpuinfo-ppc.c