Skip to contentSkip to conversation

qemu: fix regression for ppc64

PATCH New [email protected] 1 participant 1 message Feb 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: fix regression for ppc64

From: Chen Qi <[email protected]>

The qemu upstream commit, fcac98d0 (linux-user: Remove ELF_HWCAP2), accidently introduced a regression. It used get_elf_hwcap where get_elf_hwcap2 should be used.

With recent qemu upgrade in Yocto (10.1.3 -> 10.2.0), qemuppc64 build is basically broken. There are a lot of do_configure failures with error message like below:

Fatal glibc error: CPU lacks ISA 3.00 support (POWER9 or later required)

Backport a patch to fix this issue.

Note that although the problem was only revealed for qemuppc64, some arm and arm64 machines will also likely get the same issue, as in qemu source we have:
linux-user/aarch64/target_elf.h:#define HAVE_ELF_HWCAP2 1
linux-user/arm/target_elf.h:#define HAVE_ELF_HWCAP2 1
linux-user/ppc/target_elf.h:#define HAVE_ELF_HWCAP2 1

---
 meta/recipes-devtools/qemu/qemu.inc           |  1 +
 ...load.c-Correction-to-HWCAP2-accessor.patch | 42 +++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 meta/recipes-devtools/qemu/qemu/0001-linux-user-elfload.c-Correction-to-HWCAP2-accessor.patch
meta/recipes-devtools/qemu/qemu.inc +1 -0
index d320b13ba7..7aa593bc5d 100644
@@ -32,6 +32,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
            file://0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \
            file://0010-configure-lookup-meson-exutable-from-PATH.patch \
            file://0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch \
+           file://0001-linux-user-elfload.c-Correction-to-HWCAP2-accessor.patch \
            file://qemu-guest-agent.init \
            file://qemu-guest-agent.udev \
            "
meta/recipes-devtools/qemu/qemu/0001-linux-user-elfload.c-Correction-to-HWCAP2-accessor.patch new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
2.34.1