diff mbox series

Add AArch64 HWCAP2_* constants from Linux 5.19

Message ID alpine.DEB.2.22.394.2208171755190.417173@digraph.polyomino.org.uk
State New
Headers show
Series Add AArch64 HWCAP2_* constants from Linux 5.19 | expand

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
diff mbox series

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)