mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
Add AArch64 hwcap values from Linux 4.17.
Linux 4.17 adds four new AArch64 hwcap values. This patch adds them to glibc's AArch64 bits/hwcap.h, with corresponding dl-procinfo.c updates. Tested with build-many-glibcs.py for aarch64. * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New macro. (HWCAP_USCAT): Likewise. (HWCAP_ILRCPC): Likewise. (HWCAP_FLAGM): Likewise. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT): Increase to 28. (_dl_aarch64_cap_flags): Add new flag names.
This commit is contained in:
parent
bef1cbf4da
commit
0c1c33b2f5
@ -1,5 +1,14 @@
|
|||||||
2018-06-05 Joseph Myers <joseph@codesourcery.com>
|
2018-06-05 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
|
||||||
|
macro.
|
||||||
|
(HWCAP_USCAT): Likewise.
|
||||||
|
(HWCAP_ILRCPC): Likewise.
|
||||||
|
(HWCAP_FLAGM): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
|
||||||
|
Increase to 28.
|
||||||
|
(_dl_aarch64_cap_flags): Add new flag names.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
|
* sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
|
||||||
(MAP_FIXED_NOREPLACE): New macro.
|
(MAP_FIXED_NOREPLACE): New macro.
|
||||||
* sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
|
* sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
|
||||||
|
@ -45,3 +45,7 @@
|
|||||||
#define HWCAP_SHA512 (1 << 21)
|
#define HWCAP_SHA512 (1 << 21)
|
||||||
#define HWCAP_SVE (1 << 22)
|
#define HWCAP_SVE (1 << 22)
|
||||||
#define HWCAP_ASIMDFHM (1 << 23)
|
#define HWCAP_ASIMDFHM (1 << 23)
|
||||||
|
#define HWCAP_DIT (1 << 24)
|
||||||
|
#define HWCAP_USCAT (1 << 25)
|
||||||
|
#define HWCAP_ILRCPC (1 << 26)
|
||||||
|
#define HWCAP_FLAGM (1 << 27)
|
||||||
|
@ -57,7 +57,7 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Number of HWCAP bits set. */
|
/* Number of HWCAP bits set. */
|
||||||
#define _DL_HWCAP_COUNT 24
|
#define _DL_HWCAP_COUNT 28
|
||||||
|
|
||||||
#if !defined PROCINFO_DECL && defined SHARED
|
#if !defined PROCINFO_DECL && defined SHARED
|
||||||
._dl_aarch64_cap_flags
|
._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",
|
= { "fp", "asimd", "evtstrm", "aes", "pmull", "sha1", "sha2", "crc32",
|
||||||
"atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma",
|
"atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma",
|
||||||
"lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve",
|
"lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve",
|
||||||
"asimdfhm" }
|
"asimdfhm", "dit", "uscat", "ilrcpc", "flagm" }
|
||||||
#endif
|
#endif
|
||||||
#if !defined SHARED || defined PROCINFO_DECL
|
#if !defined SHARED || defined PROCINFO_DECL
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user