This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Add missing HWCAP defines
- From: Alan Hayward <Alan dot Hayward at arm dot com>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Cc: nd <nd at arm dot com>
- Date: Fri, 8 Dec 2017 14:59:32 +0000
- Subject: [PATCH] Add missing HWCAP defines
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan dot Hayward at arm dot com;
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Whilst adding the SVE defines, I noticed there were a few missing HWCAPS.
This patch simply adds in the missing HWCAPs as copied from the Linux
kernel head.
I haven't run any testsuites as the changes are should not effect them.
Is this ok?
Thanks,
Alan.
2017-12-08 Alan Hayward <alan.hayward@arm.com>
* sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add missing HWCAPs.
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index 255ddf0581..4cd37d9d76 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -38,4 +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)