0001-linux-user-Tag-vsx-with-ieee128-fpbits.patch 1.2 KB

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