diff options
Diffstat (limited to 'gdb/arch')
-rw-r--r-- | gdb/arch/aarch64.c | 6 | ||||
-rw-r--r-- | gdb/arch/aarch64.h | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/arch/aarch64.c b/gdb/arch/aarch64.c index d36ed9d..11a15dd 100644 --- a/gdb/arch/aarch64.c +++ b/gdb/arch/aarch64.c @@ -22,11 +22,12 @@ #include "../features/aarch64-core.c" #include "../features/aarch64-fpu.c" #include "../features/aarch64-sve.c" +#include "../features/aarch64-pauth.c" /* See arch/aarch64.h. */ target_desc * -aarch64_create_target_description (uint64_t vq) +aarch64_create_target_description (uint64_t vq, bool pauth_p) { target_desc *tdesc = allocate_target_description (); @@ -43,5 +44,8 @@ aarch64_create_target_description (uint64_t vq) else regnum = create_feature_aarch64_sve (tdesc, regnum, vq); + if (pauth_p) + regnum = create_feature_aarch64_pauth (tdesc, regnum); + return tdesc; } diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h index 807a4a6..4fe6d02 100644 --- a/gdb/arch/aarch64.h +++ b/gdb/arch/aarch64.h @@ -24,9 +24,10 @@ /* Create the aarch64 target description. A non zero VQ value indicates both the presence of SVE and the Vector Quotient - the number of 128bit chunks in - an SVE Z register. */ + an SVE Z register. HAS_PAUTH_P indicates the presence of the PAUTH + feature. */ -target_desc *aarch64_create_target_description (uint64_t vq); +target_desc *aarch64_create_target_description (uint64_t vq, bool has_pauth_p); /* Register numbers of various important registers. Note that on SVE, the Z registers reuse the V register numbers and the V |