[PATCH 06/23] powerpc: Add new HWCAP2 definitions from Linux 7.3
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Nov 3 14:32:11 GMT 2026
Add PPC_FEATURE2_ARCH_3_2 (commit
e671e147ea51e95d7535940ccb2b76ce681ff765, Linux 7.3) and
PPC_FEATURE2_DMF (commit 287df870bf47d191875ca12f951dde7a6f913251,
Linux 7.3), used by next POWER chip. The new bits are also added
to the hwcap names used by the glibc.cpu.hwcaps tunable and by the
ld.so diagnostics, as "arch_3_2" and "dmf".
---
sysdeps/powerpc/bits/hwcap.h | 2 ++
sysdeps/unix/sysv/linux/powerpc/dl-hwcap-info.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
index c10a1909e71..18b8592c48e 100644
--- a/sysdeps/powerpc/bits/hwcap.h
+++ b/sysdeps/powerpc/bits/hwcap.h
@@ -76,3 +76,5 @@
state. */
#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1. */
#define PPC_FEATURE2_MMA 0x00020000 /* Matrix-Multiply Assist. */
+#define PPC_FEATURE2_ARCH_3_2 0x00010000 /* ISA 3.2. */
+#define PPC_FEATURE2_DMF 0x00008000 /* Dense Math Facility. */
diff --git a/sysdeps/unix/sysv/linux/powerpc/dl-hwcap-info.c b/sysdeps/unix/sysv/linux/powerpc/dl-hwcap-info.c
index 6d3c85e9f21..82729200e77 100644
--- a/sysdeps/unix/sysv/linux/powerpc/dl-hwcap-info.c
+++ b/sysdeps/unix/sysv/linux/powerpc/dl-hwcap-info.c
@@ -62,6 +62,8 @@ const char __dl_hwcap_names[] = {
"scv\0"
"arch_3_1\0"
"mma\0"
+ "arch_3_2\0"
+ "dmf\0"
};
const struct hwcap_info_t __dl_hwcap_info[] =
@@ -112,6 +114,8 @@ const struct hwcap_info_t __dl_hwcap_info[] =
{ PPC_FEATURE2_SCV, AT_HWCAP2 },
{ PPC_FEATURE2_ARCH_3_1, AT_HWCAP2 },
{ PPC_FEATURE2_MMA, AT_HWCAP2 },
+ { PPC_FEATURE2_ARCH_3_2, AT_HWCAP2 },
+ { PPC_FEATURE2_DMF, AT_HWCAP2 },
};
size_t __dl_hwcap_info_size = array_length (__dl_hwcap_info);
--
2.53.0
More information about the Libc-alpha
mailing list