aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-tdep.h
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2017-10-25 09:06:41 +0100
committerAlan Hayward <alan.hayward@arm.com>2017-10-25 09:06:41 +0100
commitcc628f3dbb12c720dbc9ab714feeb197dc739944 (patch)
treedd2d0839d2b45b5a6c8078f72339039cc4f29ad0 /gdb/aarch64-tdep.h
parente601d38b7cc222345d4128f45db18529b9fb477b (diff)
downloadgdb-cc628f3dbb12c720dbc9ab714feeb197dc739944.zip
gdb-cc628f3dbb12c720dbc9ab714feeb197dc739944.tar.gz
gdb-cc628f3dbb12c720dbc9ab714feeb197dc739944.tar.bz2
Add common AARCH64 REGNUM defines
gdb/ * aarch64-tdep.h (enum aarch64_regnum): Remove. * arch/aarch64.h: New file. gdbserver/ * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines with REGNO. (aarch64_store_gregset): Likewise. (aarch64_fill_fpregset): Likewise. (aarch64_store_fpregset): Likewise.
Diffstat (limited to 'gdb/aarch64-tdep.h')
-rw-r--r--gdb/aarch64-tdep.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/gdb/aarch64-tdep.h b/gdb/aarch64-tdep.h
index 85c6a97..2597443 100644
--- a/gdb/aarch64-tdep.h
+++ b/gdb/aarch64-tdep.h
@@ -22,6 +22,8 @@
#ifndef AARCH64_TDEP_H
#define AARCH64_TDEP_H
+#include "arch/aarch64.h"
+
/* Forward declarations. */
struct gdbarch;
struct regset;
@@ -31,32 +33,6 @@ struct regset;
#define AARCH64_DWARF_SP 31
#define AARCH64_DWARF_V0 64
-/* Register numbers of various important registers. */
-enum aarch64_regnum
-{
- AARCH64_X0_REGNUM, /* First integer register */
-
- /* Frame register in AArch64 code, if used. */
- AARCH64_FP_REGNUM = AARCH64_X0_REGNUM + 29,
- AARCH64_LR_REGNUM = AARCH64_X0_REGNUM + 30, /* Return address */
- AARCH64_SP_REGNUM, /* Stack pointer */
- AARCH64_PC_REGNUM, /* Program counter */
- AARCH64_CPSR_REGNUM, /* Contains status register */
- AARCH64_V0_REGNUM, /* First floating point / vector register */
-
- /* Last floating point / vector register */
- AARCH64_V31_REGNUM = AARCH64_V0_REGNUM + 31,
- AARCH64_FPSR_REGNUM, /* Floating point status register */
- AARCH64_FPCR_REGNUM, /* Floating point control register */
-
- /* Other useful registers. */
-
- /* Last integer-like argument */
- AARCH64_LAST_X_ARG_REGNUM = AARCH64_X0_REGNUM + 7,
- AARCH64_STRUCT_RETURN_REGNUM = AARCH64_X0_REGNUM + 8,
- AARCH64_LAST_V_ARG_REGNUM = AARCH64_V0_REGNUM + 7
-};
-
/* Size of integer registers. */
#define X_REGISTER_SIZE 8
#define B_REGISTER_SIZE 1