mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
aarch64: Update bits/hwcap.h for Linux 4.15.
Define new HWCAP bits and add their name to dl-procinfo.c following the linux definitions. Synchronizing with v4.15-rc8 version of linux, these are not expected to change before the 4.15 release. * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define. (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_dl_aarch64_cap_flags): Update. (_DL_HWCAP_COUNT): Update.
This commit is contained in:
parent
afce1991f6
commit
953c49cc3b
@ -1,3 +1,11 @@
|
||||
2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
|
||||
(HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
|
||||
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
|
||||
(_dl_aarch64_cap_flags): Update.
|
||||
(_DL_HWCAP_COUNT): Update.
|
||||
|
||||
2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
|
||||
|
@ -38,3 +38,9 @@
|
||||
#define HWCAP_FCMA (1 << 14)
|
||||
#define HWCAP_LRCPC (1 << 15)
|
||||
#define HWCAP_DCPOP (1 << 16)
|
||||
#define HWCAP_SHA3 (1 << 17)
|
||||
#define HWCAP_SM3 (1 << 18)
|
||||
#define HWCAP_SM4 (1 << 19)
|
||||
#define HWCAP_ASIMDDP (1 << 20)
|
||||
#define HWCAP_SHA512 (1 << 21)
|
||||
#define HWCAP_SVE (1 << 22)
|
||||
|
@ -57,7 +57,7 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features
|
||||
#endif
|
||||
|
||||
/* Number of HWCAP bits set. */
|
||||
#define _DL_HWCAP_COUNT 16
|
||||
#define _DL_HWCAP_COUNT 23
|
||||
|
||||
#if !defined PROCINFO_DECL && defined SHARED
|
||||
._dl_aarch64_cap_flags
|
||||
@ -68,7 +68,7 @@ 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" }
|
||||
"lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve" }
|
||||
#endif
|
||||
#if !defined SHARED || defined PROCINFO_DECL
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user