Patchwork Add AArch64 hwcap values from Linux 4.17

login
register
mail settings
Submitter Joseph Myers
Date June 4, 2018, 8:56 p.m.
Message ID <alpine.DEB.2.20.1806042056220.1085@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/27622/
State New
Headers show

Comments

Joseph Myers - June 4, 2018, 8:56 p.m.
Linux 4.17 adds four new AArch64 hwcap values.  This patch adds them
to glibc's AArch64 bits/hwcap.h.

Tested with build-many-glibcs.py for aarch64.

2018-06-04  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.
Szabolcs Nagy - June 5, 2018, 8:56 a.m.
On 04/06/18 21:56, Joseph Myers wrote:
> Linux 4.17 adds four new AArch64 hwcap values.  This patch adds them
> to glibc's AArch64 bits/hwcap.h.
> 

dl-procinfo.c needs to be updated too.

i think it's better if that's in the same commit.
(i should probably add a comment in hwcap.h about this)

> Tested with build-many-glibcs.py for aarch64.
> 
> 2018-06-04  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.
> 
> diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> index 6f05ec1..0837913 100644
> --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> @@ -45,3 +45,7 @@
>   #define HWCAP_SHA512		(1 << 21)
>   #define HWCAP_SVE		(1 << 22)
>   #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)
>

Patch

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index 6f05ec1..0837913 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -45,3 +45,7 @@ 
 #define HWCAP_SHA512		(1 << 21)
 #define HWCAP_SVE		(1 << 22)
 #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)