X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Farch%2Faarch64.h;h=aed10353ad83447ac349c6879ab05609e7fa783a;hb=8493b6651af3d2130d5f5f050905cd3d6e8a9c27;hp=30f5360380f6e59df9bed4bcce5c864242320a00;hpb=739e8682ff1cffc2809c91853efeef232d29e582;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h index 30f5360380..aed10353ad 100644 --- a/gdb/arch/aarch64.h +++ b/gdb/arch/aarch64.h @@ -1,6 +1,6 @@ /* Common target-dependent functionality for AArch64. - Copyright (C) 2017-2018 Free Software Foundation, Inc. + Copyright (C) 2017-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -20,13 +20,14 @@ #ifndef ARCH_AARCH64_H #define ARCH_AARCH64_H -#include "common/tdesc.h" +#include "gdbsupport/tdesc.h" /* 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 (long 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 @@ -49,7 +50,7 @@ enum aarch64_regnum AARCH64_SVE_P15_REGNUM = AARCH64_SVE_P0_REGNUM + 15, /* Last SVE predicate register. */ AARCH64_SVE_FFR_REGNUM, /* SVE First Fault Register. */ - AARCH64_SVE_VG_REGNUM, /* SVE Vector Gradient. */ + AARCH64_SVE_VG_REGNUM, /* SVE Vector Granule. */ /* Other useful registers. */ AARCH64_LAST_X_ARG_REGNUM = AARCH64_X0_REGNUM + 7, @@ -57,6 +58,18 @@ enum aarch64_regnum AARCH64_LAST_V_ARG_REGNUM = AARCH64_V0_REGNUM + 7 }; +/* Pseudo register base numbers. */ +#define AARCH64_Q0_REGNUM 0 +#define AARCH64_D0_REGNUM (AARCH64_Q0_REGNUM + AARCH64_D_REGISTER_COUNT) +#define AARCH64_S0_REGNUM (AARCH64_D0_REGNUM + 32) +#define AARCH64_H0_REGNUM (AARCH64_S0_REGNUM + 32) +#define AARCH64_B0_REGNUM (AARCH64_H0_REGNUM + 32) +#define AARCH64_SVE_V0_REGNUM (AARCH64_B0_REGNUM + 32) + +#define AARCH64_PAUTH_DMASK_REGNUM(pauth_reg_base) (pauth_reg_base) +#define AARCH64_PAUTH_CMASK_REGNUM(pauth_reg_base) (pauth_reg_base + 1) +#define AARCH64_PAUTH_REGS_SIZE (16) + #define AARCH64_X_REGS_NUM 31 #define AARCH64_V_REGS_NUM 32 #define AARCH64_SVE_Z_REGS_NUM AARCH64_V_REGS_NUM @@ -71,13 +84,17 @@ enum aarch64_regnum The number of bytes in an SVE Z register. VQ : Vector Quotient. The number of 128bit chunks in an SVE Z register. - VG : Vector Gradient. + VG : Vector Granule. The number of 64bit chunks in an SVE Z register. */ #define sve_vg_from_vl(vl) ((vl) / 8) #define sve_vl_from_vg(vg) ((vg) * 8) +#ifndef sve_vq_from_vl #define sve_vq_from_vl(vl) ((vl) / 0x10) +#endif +#ifndef sve_vl_from_vq #define sve_vl_from_vq(vq) ((vq) * 0x10) +#endif #define sve_vq_from_vg(vg) (sve_vq_from_vl (sve_vl_from_vg (vg))) #define sve_vg_from_vq(vq) (sve_vg_from_vl (sve_vl_from_vq (vq)))