GDB (xrefs)

aarch64.h
Go to the documentation of this file.
1 /* Common target-dependent functionality for AArch64.
2
3 Copyright (C) 2017-2018 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20 #ifndef ARCH_AARCH64_H
21 #define ARCH_AARCH64_H
22
23 #include "tdesc.h"
24
25 target_desc *aarch64_create_target_description ();
26
27 /* Register numbers of various important registers. */
28 enum aarch64_regnum
29 {
30 AARCH64_X0_REGNUM, /* First integer register. */
31 AARCH64_FP_REGNUM = AARCH64_X0_REGNUM + 29, /* Frame register, if used. */
32 AARCH64_LR_REGNUM = AARCH64_X0_REGNUM + 30, /* Return address. */
33 AARCH64_SP_REGNUM, /* Stack pointer. */
34 AARCH64_PC_REGNUM, /* Program counter. */
35 AARCH64_CPSR_REGNUM, /* Current Program Status Register. */
36 AARCH64_V0_REGNUM, /* First fp/vec register. */
37 AARCH64_V31_REGNUM = AARCH64_V0_REGNUM + 31, /* Last fp/vec register. */
38 AARCH64_FPSR_REGNUM, /* Floating Point Status Register. */
39 AARCH64_FPCR_REGNUM, /* Floating Point Control Register. */
40
41 /* Other useful registers. */
42 AARCH64_LAST_X_ARG_REGNUM = AARCH64_X0_REGNUM + 7,
43 AARCH64_STRUCT_RETURN_REGNUM = AARCH64_X0_REGNUM + 8,
44 AARCH64_LAST_V_ARG_REGNUM = AARCH64_V0_REGNUM + 7
45 };
46
47 #define AARCH64_X_REGS_NUM 31
48 #define AARCH64_V_REGS_NUM 32
49 #define AARCH64_NUM_REGS AARCH64_FPCR_REGNUM + 1
50
51 #endif /* ARCH_AARCH64_H */
AARCH64_FPSR_REGNUM
Definition: aarch64.h:38
AARCH64_FPCR_REGNUM
Definition: aarch64.h:39
AARCH64_CPSR_REGNUM
Definition: aarch64.h:35
AARCH64_SP_REGNUM
Definition: aarch64.h:33
AARCH64_STRUCT_RETURN_REGNUM
Definition: aarch64.h:43
AARCH64_LAST_V_ARG_REGNUM
Definition: aarch64.h:44
AARCH64_PC_REGNUM
Definition: aarch64.h:34
aarch64_regnum
aarch64_regnum
Definition: aarch64.h:28
AARCH64_LAST_X_ARG_REGNUM
Definition: aarch64.h:42
AARCH64_V31_REGNUM
Definition: aarch64.h:37
target_desc
Definition: target-descriptions.c:591
aarch64_create_target_description
target_desc * aarch64_create_target_description()
Definition: aarch64.c:28
AARCH64_V0_REGNUM
Definition: aarch64.h:36
AARCH64_LR_REGNUM
Definition: aarch64.h:32
AARCH64_FP_REGNUM
Definition: aarch64.h:31
AARCH64_X0_REGNUM
Definition: aarch64.h:30
tdesc.h