linux-user: Check for ieee128 fpbits in PPC64 HWCAP2 feature list
PATCH 1/1 linux-user: Check for ieee128 fpbits in PPC64 HWCAP2 feature list
glibc 2.34 is now checking for this in hwcaps at runtime [1] and failing to run the binary if machine does not support 128bit IEEE fp
Fixes
Fatal glibc error: CPU lacks float128 support (POWER 9 or later required)
--- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/elfload.c +1 -1
@@ -830,7 +830,7 @@ static uint32_t get_elf_hwcap2(void) PPC2_ISA207S), QEMU_PPC_FEATURE2_ARCH_2_07 | QEMU_PPC_FEATURE2_VEC_CRYPTO);GET_FEATURE2 (PPC2_ISA300 ,QEMU_PPC_FEATURE2_ARCH_3_00 | -QEMU_PPC_FEATURE2_DARN ); +QEMU_PPC_FEATURE2_DARN |QEMU_PPC_FEATURE2_HAS_IEEE128 );#undef GET_FEATURE#undef GET_FEATURE2
Signature · 1 line
2.32.0
Le 14/06/2021 à 21:17, Khem Raj a écrit :
Quoted 21 lines
glibc 2.34 is now checking for this in hwcaps at runtime [1] and failing to run the binary if machine does not support 128bit IEEE fp
Fixes
Fatal glibc error: CPU lacks float128 support (POWER 9 or later required)Signed-off-by Khem Raj <[email protected]>Cc Florian Weimer <[email protected]>--- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)linux-user/elfload.c +0
-0
linux-user/elfload.c static uint32_t get_elf_hwcap2(void) · line 836
Quoted 8 lines
linux-user/elfload.c +1
-1@@ -830,7 +830,7 @@ static uint32_t get_elf_hwcap2(void) PPC2_ISA207S), QEMU_PPC_FEATURE2_ARCH_2_07 | QEMU_PPC_FEATURE2_VEC_CRYPTO);GET_FEATURE2 (PPC2_ISA300 ,QEMU_PPC_FEATURE2_ARCH_3_00 | -QEMU_PPC_FEATURE2_DARN ); +QEMU_PPC_FEATURE2_DARN |QEMU_PPC_FEATURE2_HAS_IEEE128 );#undef GET_FEATURE#undef GET_FEATURE2
Laurent Vivier
AppliedLe 14/06/2021 à 21:17, Khem Raj a écrit :
Quoted 21 lines
glibc 2.34 is now checking for this in hwcaps at runtime [1] and failing to run the binary if machine does not support 128bit IEEE fp
Fixes
Fatal glibc error: CPU lacks float128 support (POWER 9 or later required)Signed-off-by Khem Raj <[email protected]>Cc Florian Weimer <[email protected]>--- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)linux-user/elfload.c +0
-0
linux-user/elfload.c static uint32_t get_elf_hwcap2(void) · line 836
Quoted 8 lines
linux-user/elfload.c +1
-1@@ -830,7 +830,7 @@ static uint32_t get_elf_hwcap2(void) PPC2_ISA207S), QEMU_PPC_FEATURE2_ARCH_2_07 | QEMU_PPC_FEATURE2_VEC_CRYPTO);GET_FEATURE2 (PPC2_ISA300 ,QEMU_PPC_FEATURE2_ARCH_3_00 | -QEMU_PPC_FEATURE2_DARN ); +QEMU_PPC_FEATURE2_DARN |QEMU_PPC_FEATURE2_HAS_IEEE128 );#undef GET_FEATURE#undef GET_FEATURE2
Applied to my linux-user-for-6.1 branch.
Thanks,
Laurent