aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-04-20 16:36:00 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-04-20 16:36:00 +0000
commit458b94f63e6fc5af1582a98007a1e4769f785fb7 (patch)
treefa4fed6538111dd2e7d88c3fc4a91b07836524b0
parentb75a9b26cf3e498705c09b3df77f974fd2da8685 (diff)
downloadglibc-458b94f63e6fc5af1582a98007a1e4769f785fb7.zip
glibc-458b94f63e6fc5af1582a98007a1e4769f785fb7.tar.gz
glibc-458b94f63e6fc5af1582a98007a1e4769f785fb7.tar.bz2
Update aarch64 bits/hwcap.h, dl-procinfo.c for Linux 4.16 HWCAP_ASIMDFHM.
This patch updates the aarch64 bits/hwcap.h and dl-procinfo.c for the new HWCAP_ASIMDFHM value in Linux 4.16. Tested with build-many-glibcs.py for aarch64-linux-gnu. * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM): New macro. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT): Increase to 24. (_dl_aarch64_cap_flags): Add asimdfhm.
-rw-r--r--ChangeLog8
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h1
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c5
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3f76880..3cac21d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-04-20 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
+ New macro.
+ * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
+ Increase to 24.
+ (_dl_aarch64_cap_flags): Add asimdfhm.
+
2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
* sysdeps/nios2/libm-test-ulps: Update.
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index 569eb07..6f05ec1 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -44,3 +44,4 @@
#define HWCAP_ASIMDDP (1 << 20)
#define HWCAP_SHA512 (1 << 21)
#define HWCAP_SVE (1 << 22)
+#define HWCAP_ASIMDFHM (1 << 23)
diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
index 940f648..054d5c8 100644
--- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
+++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
@@ -57,7 +57,7 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features
#endif
/* Number of HWCAP bits set. */
-#define _DL_HWCAP_COUNT 23
+#define _DL_HWCAP_COUNT 24
#if !defined PROCINFO_DECL && defined SHARED
._dl_aarch64_cap_flags
@@ -68,7 +68,8 @@ PROCINFO_CLASS const char _dl_aarch64_cap_flags[_DL_HWCAP_COUNT][10]
/* Matches the names in arch/arm64/kernel/cpuinfo.c of Linux. */
= { "fp", "asimd", "evtstrm", "aes", "pmull", "sha1", "sha2", "crc32",
"atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma",
- "lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve" }
+ "lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve",
+ "asimdfhm" }
#endif
#if !defined SHARED || defined PROCINFO_DECL
;