Add AArch64 HWCAP2_* constants from Linux 5.19

Message ID alpine.DEB.2.22.394.2208171755190.417173@digraph.polyomino.org.uk
State Committed
Commit 4c199499d65bb06d304ec1b734de738b8f252b97
Headers
Series Add AArch64 HWCAP2_* constants from Linux 5.19 |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Joseph Myers Aug. 17, 2022, 5:55 p.m. UTC
  Linux 5.19 adds more HWCAP2_* values for AArch64; add these to its
bits/hwcap.h header in glibc.

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

Comments

Szabolcs Nagy Aug. 22, 2022, 2:55 p.m. UTC | #1
The 08/17/2022 17:55, Joseph Myers wrote:
> Linux 5.19 adds more HWCAP2_* values for AArch64; add these to its
> bits/hwcap.h header in glibc.
> 
> Tested with build-many-glibcs.py for aarch64-linux-gnu.

this is ok to commit, thanks.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>

> 
> diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> index 616239bb84..07cb962a7b 100644
> --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> @@ -78,3 +78,12 @@
>  #define HWCAP2_AFP		(1 << 20)
>  #define HWCAP2_RPRES		(1 << 21)
>  #define HWCAP2_MTE3		(1 << 22)
> +#define HWCAP2_SME		(1 << 23)
> +#define HWCAP2_SME_I16I64	(1 << 24)
> +#define HWCAP2_SME_F64F64	(1 << 25)
> +#define HWCAP2_SME_I8I32	(1 << 26)
> +#define HWCAP2_SME_F16F32	(1 << 27)
> +#define HWCAP2_SME_B16F32	(1 << 28)
> +#define HWCAP2_SME_F32F32	(1 << 29)
> +#define HWCAP2_SME_FA64		(1 << 30)
> +#define HWCAP2_WFXT		(1UL << 31)
> 
> -- 
> Joseph S. Myers
> joseph@codesourcery.com
  

Patch

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index 616239bb84..07cb962a7b 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -78,3 +78,12 @@ 
 #define HWCAP2_AFP		(1 << 20)
 #define HWCAP2_RPRES		(1 << 21)
 #define HWCAP2_MTE3		(1 << 22)
+#define HWCAP2_SME		(1 << 23)
+#define HWCAP2_SME_I16I64	(1 << 24)
+#define HWCAP2_SME_F64F64	(1 << 25)
+#define HWCAP2_SME_I8I32	(1 << 26)
+#define HWCAP2_SME_F16F32	(1 << 27)
+#define HWCAP2_SME_B16F32	(1 << 28)
+#define HWCAP2_SME_F32F32	(1 << 29)
+#define HWCAP2_SME_FA64		(1 << 30)
+#define HWCAP2_WFXT		(1UL << 31)