Skip to content

Commit bf4fcf8

Browse files
author
Luis Machado
committed
[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.
1 parent b5248d6 commit bf4fcf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gdb/nat/aarch64-scalable-linux-sigcontext.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ struct user_za_header {
301301

302302
/* Offset from the start of struct user_za_header to the register data */
303303
#define ZA_PT_ZA_OFFSET \
304-
((sizeof (struct user_za_header) + (__SVE_VQ_BYTES - 1)) \
305-
/ __SVE_VQ_BYTES * __SVE_VQ_BYTES)
304+
((sizeof (struct user_za_header) + (SVE_VQ_BYTES - 1)) \
305+
/ SVE_VQ_BYTES * SVE_VQ_BYTES)
306306

307307
/* The payload starts at offset ZA_PT_ZA_OFFSET, and is of size
308308
ZA_PT_ZA_SIZE(vq, flags).
@@ -317,9 +317,9 @@ struct user_za_header {
317317
systems: see sigcontext.h for more explanation. */
318318

319319
#define ZA_PT_ZAV_OFFSET(vq, n) \
320-
(ZA_PT_ZA_OFFSET + ((vq * __SVE_VQ_BYTES) * n))
320+
(ZA_PT_ZA_OFFSET + ((vq * SVE_VQ_BYTES) * n))
321321

322-
#define ZA_PT_ZA_SIZE(vq) ((vq * __SVE_VQ_BYTES) * (vq * __SVE_VQ_BYTES))
322+
#define ZA_PT_ZA_SIZE(vq) ((vq * SVE_VQ_BYTES) * (vq * SVE_VQ_BYTES))
323323

324324
#define ZA_PT_SIZE(vq) \
325325
(ZA_PT_ZA_OFFSET + ZA_PT_ZA_SIZE(vq))

0 commit comments

Comments
 (0)