blob: 11b6e3c678c3f9fb2b6186d3ec9844226e7bab0e [file] [log] [blame]
Andrew Geissler09036742021-06-25 14:25:14 -05001From c5844a4cdee37268c9b65a65e6968ee129bb742d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 14 Jun 2021 10:27:17 -0700
4Subject: [PATCH] linux-user: Tag vsx with ieee128 fpbits
5
6In OE we need this for ppc64le usermode to work since we generate 128bit
7long doubles and glibc 2.34 is now checking for this in hwcaps at
8runtime and failing to run the binary if machine does not support 128bit
9IEEE fp
10
11Fixes
12Fatal glibc error: CPU lacks float128 support (POWER 9 or later required)
13
14Upstream-Status: Pending
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 linux-user/elfload.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/linux-user/elfload.c b/linux-user/elfload.c
21index 17ab06f612..e7dd18fd40 100644
22--- a/linux-user/elfload.c
23+++ b/linux-user/elfload.c
24@@ -830,7 +830,7 @@ static uint32_t get_elf_hwcap2(void)
25 PPC2_ISA207S), QEMU_PPC_FEATURE2_ARCH_2_07 |
26 QEMU_PPC_FEATURE2_VEC_CRYPTO);
27 GET_FEATURE2(PPC2_ISA300, QEMU_PPC_FEATURE2_ARCH_3_00 |
28- QEMU_PPC_FEATURE2_DARN);
29+ QEMU_PPC_FEATURE2_DARN | QEMU_PPC_FEATURE2_HAS_IEEE128);
30
31 #undef GET_FEATURE
32 #undef GET_FEATURE2
33--
342.32.0
35