diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-01-02 17:27:02 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-01-03 17:58:17 +0000 |
commit | 7d7af8f17d81358817a8e2d97f60dc528f27d6e9 (patch) | |
tree | 811e462f1305cb3f62592783ffb2eab89712ec9b /sysdeps/unix | |
parent | 805334b26c7e6e83557234f2008497c72176a6cd (diff) | |
download | glibc-7d7af8f17d81358817a8e2d97f60dc528f27d6e9.tar glibc-7d7af8f17d81358817a8e2d97f60dc528f27d6e9.tar.gz glibc-7d7af8f17d81358817a8e2d97f60dc528f27d6e9.tar.bz2 glibc-7d7af8f17d81358817a8e2d97f60dc528f27d6e9.zip |
AArch64: Update dl-procinfo.c with new HWCAP
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.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h index 193959fe9b..9a395c597f 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h @@ -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) diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c index 6c20d84839..30ee7c8176 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 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 ; |