Automatic date update in version.in
[binutils-gdb.git] / gdb / loongarch-tdep.h
blobb2fd16e25a7c23cd8876592fa47c9a751d4d4a9d
1 /* Target-dependent header for the LoongArch architecture, for GDB.
3 Copyright (C) 2022 Free Software Foundation, Inc.
5 This file is part of GDB.
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.
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.
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/>. */
20 #ifndef LOONGARCH_TDEP_H
21 #define LOONGARCH_TDEP_H
23 #include "gdbarch.h"
24 #include "arch/loongarch.h"
25 #include "regset.h"
27 #include "elf/loongarch.h"
28 #include "opcode/loongarch.h"
30 /* Register set definitions. */
31 extern const struct regset loongarch_gregset;
33 /* Target-dependent structure in gdbarch. */
34 struct loongarch_gdbarch_tdep : gdbarch_tdep
36 /* Features about the abi that impact how the gdbarch is configured. */
37 struct loongarch_gdbarch_features abi_features;
39 struct
41 int r; /* General register. */
42 int ra; /* Return Address. */
43 int sp; /* Stack Pointer. */
44 int pc; /* Program Counter. */
45 int badv; /* Bad vaddr for addressing exception. */
46 } regs; /* LoongArch registers */
49 #endif /* LOONGARCH_TDEP_H */