This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add Aarch64 SVE defines

This patch adds Aarch64 SVE specific defines to glibc.

The Linux kernel changes for Aarch64 SVE have recently been pulled
into the head:
Although not due to be in a kernel release until early 2018, we'd
like to make sure any glibc changes are ready for a similar time.

I haven't run any testsuites as the changes are should not effect them.

Is this ok?


2017-12-08  Alan Hayward  <>

	* elf/elf.h: Add NT_ARM_SVE.
	* sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add HWCAP_SVE.

 elf/elf.h                                    | 2 ++
 sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/elf/elf.h b/elf/elf.h
index 01a43ce9ac..e54a529d51 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -795,6 +795,8 @@ typedef struct
 #define NT_ARM_HW_BREAK        0x402           /* ARM hardware breakpoint registers */
 #define NT_ARM_HW_WATCH        0x403           /* ARM hardware watchpoint registers */
 #define NT_ARM_SYSTEM_CALL     0x404   /* ARM system call number */
+#define NT_ARM_SVE     0x405           /* ARM Scalable Vector Extension
+                                          registers */

 /* Legal values for the note segment descriptor types for object files.  */

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index e46bb69118..255ddf0581 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -38,3 +38,4 @@
 #define HWCAP_FCMA             (1 << 14)
 #define HWCAP_LRCPC            (1 << 15)
 #define HWCAP_DCPOP            (1 << 16)
+#define HWCAP_SVE              (1 << 22)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]