]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/loongarch-tdep.h
gdb: LoongArch: Add LBT extension support
[thirdparty/binutils-gdb.git] / gdb / loongarch-tdep.h
CommitLineData
772d1f34
TY
1/* Target-dependent header for the LoongArch architecture, for GDB.
2
1d506c26 3 Copyright (C) 2022-2024 Free Software Foundation, Inc.
772d1f34
TY
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 LOONGARCH_TDEP_H
21#define LOONGARCH_TDEP_H
22
23#include "gdbarch.h"
24#include "arch/loongarch.h"
25#include "regset.h"
26
27#include "elf/loongarch.h"
28#include "opcode/loongarch.h"
29
30/* Register set definitions. */
31extern const struct regset loongarch_gregset;
657a5022 32extern const struct regset loongarch_fpregset;
1e9569f3
HL
33extern const struct regset loongarch_lsxregset;
34extern const struct regset loongarch_lasxregset;
e4d74c01 35extern const struct regset loongarch_lbtregset;
772d1f34
TY
36
37/* Target-dependent structure in gdbarch. */
ab25d9bb 38struct loongarch_gdbarch_tdep : gdbarch_tdep_base
772d1f34
TY
39{
40 /* Features about the abi that impact how the gdbarch is configured. */
41 struct loongarch_gdbarch_features abi_features;
af6e3f77
TY
42
43 /* Return the expected next PC if FRAME is stopped at a syscall instruction. */
bd2b40ac 44 CORE_ADDR (*syscall_next_pc) (frame_info_ptr frame) = nullptr;
772d1f34
TY
45};
46
47#endif /* LOONGARCH_TDEP_H */