[PATCH] sparc: Align THP tests to the 8MB huge-page size
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Jul 15 13:10:40 GMT 2026
The sparc64 uses an 8KB base page and 8MB PMD transparent huge page.
It fixes the following regression on sparc:
FAIL: elf/tst-thp-1
FAIL: elf/tst-thp-1-no-s-code
FAIL: elf/tst-thp-1-no-s-code-pde
FAIL: elf/tst-thp-1-no-s-code-static
FAIL: elf/tst-thp-1-pde
FAIL: elf/tst-thp-1-static
FAIL: elf/tst-thp-align
Checked with the elf tests on qemu sparc64.
---
sysdeps/unix/sysv/linux/sparc/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/sparc/Makefile b/sysdeps/unix/sysv/linux/sparc/Makefile
index e0056c9413f..57e73d0a14d 100644
--- a/sysdeps/unix/sysv/linux/sparc/Makefile
+++ b/sysdeps/unix/sysv/linux/sparc/Makefile
@@ -14,3 +14,8 @@ endif
ifeq ($(subdir),signal)
sysdep_routines += sigreturn_stub
endif
+
+ifeq ($(subdir),elf)
+# The sparc64 uses an 8KB base page and 8MB PMD transparent huge page
+THP-PAGE-SIZE = 0x800000
+endif
--
2.43.0
More information about the Libc-alpha
mailing list