aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/aarch64-scalable-linux-sigcontext.h
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@arm.com>2023-10-13 16:03:50 +0100
committerLuis Machado <luis.machado@arm.com>2023-10-13 16:27:19 +0100
commitbf4fcf8bc5d159a7aee37da3d8f8b61103f734bc (patch)
treea4c2d42f6b488d166ac18f6329048c93c56cdfe8 /gdb/nat/aarch64-scalable-linux-sigcontext.h
parentb5248d602e4d42a3bf8229dd18f02989cd5b831a (diff)
downloadgdb-bf4fcf8bc5d159a7aee37da3d8f8b61103f734bc.zip
gdb-bf4fcf8bc5d159a7aee37da3d8f8b61103f734bc.tar.gz
gdb-bf4fcf8bc5d159a7aee37da3d8f8b61103f734bc.tar.bz2
[aarch64] Use SVE_VQ_BYTES instead of __SVE_VQ_BYTES
__SVE_VQ_BYTES is only available if SVE definitions are available in the system's headers, and this is not true for all systems. For this purpose, we define SVE_VQ_BYTES. This patch fixes the name of the constant being used.
Diffstat (limited to 'gdb/nat/aarch64-scalable-linux-sigcontext.h')
-rw-r--r--gdb/nat/aarch64-scalable-linux-sigcontext.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/nat/aarch64-scalable-linux-sigcontext.h b/gdb/nat/aarch64-scalable-linux-sigcontext.h
index 1862344..7c85829 100644
--- a/gdb/nat/aarch64-scalable-linux-sigcontext.h
+++ b/gdb/nat/aarch64-scalable-linux-sigcontext.h
@@ -301,8 +301,8 @@ struct user_za_header {
/* Offset from the start of struct user_za_header to the register data */
#define ZA_PT_ZA_OFFSET \
- ((sizeof (struct user_za_header) + (__SVE_VQ_BYTES - 1)) \
- / __SVE_VQ_BYTES * __SVE_VQ_BYTES)
+ ((sizeof (struct user_za_header) + (SVE_VQ_BYTES - 1)) \
+ / SVE_VQ_BYTES * SVE_VQ_BYTES)
/* The payload starts at offset ZA_PT_ZA_OFFSET, and is of size
ZA_PT_ZA_SIZE(vq, flags).
@@ -317,9 +317,9 @@ struct user_za_header {
systems: see sigcontext.h for more explanation. */
#define ZA_PT_ZAV_OFFSET(vq, n) \
- (ZA_PT_ZA_OFFSET + ((vq * __SVE_VQ_BYTES) * n))
+ (ZA_PT_ZA_OFFSET + ((vq * SVE_VQ_BYTES) * n))
-#define ZA_PT_ZA_SIZE(vq) ((vq * __SVE_VQ_BYTES) * (vq * __SVE_VQ_BYTES))
+#define ZA_PT_ZA_SIZE(vq) ((vq * SVE_VQ_BYTES) * (vq * SVE_VQ_BYTES))
#define ZA_PT_SIZE(vq) \
(ZA_PT_ZA_OFFSET + ZA_PT_ZA_SIZE(vq))