AArch64: Update dl-procinfo.c with new HWCAP
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 2 Jan 2019 17:27:02 +0000 (17:27 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 3 Jan 2019 17:58:17 +0000 (17:58 +0000)
bits/hwcap.h should be updated together with dl-procinfo.c.

* sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
Update.

ChangeLog
sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c

index f51ba49..12422b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
+       * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
+       Update.
+
 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        [BZ #23640]
index 193959f..9a395c5 100644 (file)
@@ -20,7 +20,8 @@
 # error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
 #endif
 
-/* The following must match the kernel's <asm/hwcap.h>.  */
+/* The following must match the kernel's <asm/hwcap.h> and update the
+   list together with sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c.  */
 #define HWCAP_FP               (1 << 0)
 #define HWCAP_ASIMD            (1 << 1)
 #define HWCAP_EVTSTRM          (1 << 2)
index 6c20d84..30ee7c8 100644 (file)
@@ -57,7 +57,7 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features
 #endif
 
 /* Number of HWCAP bits set.  */
-#define _DL_HWCAP_COUNT 28
+#define _DL_HWCAP_COUNT 29
 
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_aarch64_cap_flags
@@ -69,7 +69,7 @@ PROCINFO_CLASS const char _dl_aarch64_cap_flags[_DL_HWCAP_COUNT][10]
 = { "fp", "asimd", "evtstrm", "aes", "pmull", "sha1", "sha2", "crc32",
     "atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma",
     "lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve",
-    "asimdfhm", "dit", "uscat", "ilrcpc", "flagm" }
+    "asimdfhm", "dit", "uscat", "ilrcpc", "flagm", "ssbs" }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
 ;