]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/tic6x-tdep.h
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / tic6x-tdep.h
CommitLineData
8cd64e00 1/* GNU/Linux on TI C6x target support.
1d506c26 2 Copyright (C) 2011-2024 Free Software Foundation, Inc.
8cd64e00
YQ
3 Contributed by Yao Qi <yao@codesourcery.com>
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
1a5c2598
TT
20#ifndef TIC6X_TDEP_H
21#define TIC6X_TDEP_H
22
345bd07c
SM
23#include "gdbarch.h"
24
8cd64e00
YQ
25enum
26{
27 TIC6X_A4_REGNUM = 4,
28 TIC6X_A5_REGNUM = 5,
29 TIC6X_FP_REGNUM = 15, /* Frame Pointer: A15 */
30 TIC6X_B0_REGNUM = 16,
31 TIC6X_RA_REGNUM = 19, /* Return address: B3 */
32 TIC6X_B4_REGNUM = 20,
33 TIC6X_B5_REGNUM = 21,
34 TIC6X_DP_REGNUM = 30, /* Data Page Pointer: B14 */
35 TIC6X_SP_REGNUM = 31, /* Stack Pointer: B15 */
36 TIC6X_CSR_REGNUM = 32,
37 TIC6X_PC_REGNUM = 33,
38 TIC6X_NUM_CORE_REGS = 33, /* The number of core registers */
39 TIC6X_RILC_REGNUM = 68,
40 TIC6X_NUM_REGS /* The number of registers */
41};
42
43#define TIC6X_INST_SWE 0x10000000
44
45extern const gdb_byte tic6x_bkpt_illegal_opcode_be[];
46extern const gdb_byte tic6x_bkpt_illegal_opcode_le[];
47
48/* Target-dependent structure in gdbarch. */
ab25d9bb 49struct tic6x_gdbarch_tdep : gdbarch_tdep_base
8cd64e00
YQ
50{
51 /* Return the expected next PC if FRAME is stopped at a syscall
52 instruction. */
bd2b40ac 53 CORE_ADDR (*syscall_next_pc) (frame_info_ptr frame) = nullptr;
8cd64e00 54
345bd07c 55 const gdb_byte *breakpoint = nullptr; /* Breakpoint instruction. */
8cd64e00 56
345bd07c 57 int has_gp = 0; /* Has general purpose registers A16 - A31 and B16 - B31. */
8cd64e00 58};
1a5c2598
TT
59
60#endif /* TIC6X_TDEP_H */