aarch64: update bits/hwcap.h

Message ID 20200401092940.GN27072@arm.com
State Committed
Headers
Series aarch64: update bits/hwcap.h |

Commit Message

Szabolcs Nagy April 1, 2020, 9:29 a.m. UTC
  Linux 5.6 was released so update hwcaps.

I plan to commit this tomorrow unless there are comments.
  

Comments

Szabolcs Nagy April 3, 2020, 1:15 p.m. UTC | #1
The 04/01/2020 10:29, Szabolcs Nagy wrote:
> Linux 5.6 was released so update hwcaps.
> 
> I plan to commit this tomorrow unless there are comments.

committed.
  

Patch

>From 6110d7b7496bacb97aee02b063ce7d71bd028cc0 Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Tue, 17 Mar 2020 15:53:34 +0000
Subject: [PATCH] aarch64: update bits/hwcap.h

Up to date with Linux 5.6. dl-procinfo.c is not updated because
HWCAP2 bits are not handled specially in glibc.
---
 sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index f52840c2c4..4ee14b4208 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -54,3 +54,21 @@ 
 #define HWCAP_SB		(1 << 29)
 #define HWCAP_PACA		(1 << 30)
 #define HWCAP_PACG		(1UL << 31)
+
+#define HWCAP2_DCPODP		(1 << 0)
+#define HWCAP2_SVE2		(1 << 1)
+#define HWCAP2_SVEAES		(1 << 2)
+#define HWCAP2_SVEPMULL		(1 << 3)
+#define HWCAP2_SVEBITPERM	(1 << 4)
+#define HWCAP2_SVESHA3		(1 << 5)
+#define HWCAP2_SVESM4		(1 << 6)
+#define HWCAP2_FLAGM2		(1 << 7)
+#define HWCAP2_FRINT		(1 << 8)
+#define HWCAP2_SVEI8MM		(1 << 9)
+#define HWCAP2_SVEF32MM		(1 << 10)
+#define HWCAP2_SVEF64MM		(1 << 11)
+#define HWCAP2_SVEBF16		(1 << 12)
+#define HWCAP2_I8MM		(1 << 13)
+#define HWCAP2_BF16		(1 << 14)
+#define HWCAP2_DGH		(1 << 15)
+#define HWCAP2_RNG		(1 << 16)
-- 
2.17.1