From: Szabolcs Nagy <szabolcs.nagy@arm.com>
To: GNU C Library <libc-alpha@sourceware.org>
Cc: nd@arm.com
Subject: [PATCH committed][AArch64] Update dl-procinfo for new HWCAP flags in Linux 4.12
Date: Wed, 19 Jul 2017 12:54:00 -0000 [thread overview]
Message-ID: <596F5682.5000401@arm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
Update the libc internal dl-procinfo with the new HWCAP flags.
Follow up to commit 512d245bc30cca893db6979f42f058e734f345c3.
2017-07-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c:
(_dl_aarch64_cap_flags): Update.
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
(_DL_HWCAP_COUNT, _DL_HWCAP_LAST): Update.
[-- Attachment #2: hwcap3.diff --]
[-- Type: text/x-patch, Size: 1497 bytes --]
diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
index bc37bad782..fed31fd9b5 100644
--- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
+++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
@@ -59,11 +59,13 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features
#if !defined PROCINFO_DECL && defined SHARED
._dl_aarch64_cap_flags
#else
-PROCINFO_CLASS const char _dl_aarch64_cap_flags[13][10]
+PROCINFO_CLASS const char _dl_aarch64_cap_flags[16][10]
#endif
#ifndef PROCINFO_DECL
+/* Matches the names in arch/arm64/kernel/cpuinfo.c of Linux. */
= { "fp", "asimd", "evtstrm", "aes", "pmull", "sha1", "sha2", "crc32",
- "atomics", "fphp", "asimdhp", "cpuid", "asimdrdm"}
+ "atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma",
+ "lrcpc" }
#endif
#if !defined SHARED || defined PROCINFO_DECL
;
diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
index 44dc296d3e..0333a18267 100644
--- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
+++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
@@ -28,10 +28,10 @@
#define _dl_procinfo(type, word) -1
/* Number of HWCAP bits set. */
-#define _DL_HWCAP_COUNT 13
+#define _DL_HWCAP_COUNT 16
/* Offset of the last bit allocated in HWCAP. */
-#define _DL_HWCAP_LAST 12
+#define _DL_HWCAP_LAST 15
/* HWCAP_CPUID should be available by default to influence IFUNC as well as
library search. */
reply other threads:[~2017-07-19 12:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=596F5682.5000401@arm.com \
--to=szabolcs.nagy@arm.com \
--cc=libc-alpha@sourceware.org \
--cc=nd@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).