aarch64-linux-tdep.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* GNU/Linux on AArch64 target support, prototypes.
  2. Copyright (C) 2012-2022 Free Software Foundation, Inc.
  3. Contributed by ARM Ltd.
  4. This file is part of GDB.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifndef AARCH64_LINUX_TDEP_H
  16. #define AARCH64_LINUX_TDEP_H
  17. #include "regset.h"
  18. /* The general-purpose regset consists of 31 X registers, plus SP, PC,
  19. and PSTATE registers, as defined in the AArch64 port of the Linux
  20. kernel. */
  21. #define AARCH64_LINUX_SIZEOF_GREGSET (34 * X_REGISTER_SIZE)
  22. /* The fp regset consists of 32 V registers, plus FPCR and FPSR which
  23. are 4 bytes wide each, and the whole structure is padded to 128 bit
  24. alignment. */
  25. #define AARCH64_LINUX_SIZEOF_FPREGSET (33 * V_REGISTER_SIZE)
  26. /* The pauth regset consists of 2 X sized registers. */
  27. #define AARCH64_LINUX_SIZEOF_PAUTH (2 * X_REGISTER_SIZE)
  28. /* The MTE regset consists of a 64-bit register. */
  29. #define AARCH64_LINUX_SIZEOF_MTE_REGSET (8)
  30. extern const struct regset aarch64_linux_gregset;
  31. extern const struct regset aarch64_linux_fpregset;
  32. /* Matches HWCAP_PACA in kernel header arch/arm64/include/uapi/asm/hwcap.h. */
  33. #define AARCH64_HWCAP_PACA (1 << 30)
  34. #endif /* AARCH64_LINUX_TDEP_H */