1 /* Target-dependent code for Xilinx MicroBlaze.
3 Copyright (C) 2009-2024 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 MICROBLAZE_TDEP_H
21 #define MICROBLAZE_TDEP_H 1
25 /* Microblaze architecture-specific information. */
26 struct microblaze_gdbarch_tdep
: gdbarch_tdep_base
30 /* Register numbers. */
31 enum microblaze_regnum
34 MICROBLAZE_R1_REGNUM
, MICROBLAZE_SP_REGNUM
= MICROBLAZE_R1_REGNUM
,
36 MICROBLAZE_R3_REGNUM
, MICROBLAZE_RETVAL_REGNUM
= MICROBLAZE_R3_REGNUM
,
38 MICROBLAZE_R5_REGNUM
, MICROBLAZE_FIRST_ARGREG
= MICROBLAZE_R5_REGNUM
,
43 MICROBLAZE_R10_REGNUM
, MICROBLAZE_LAST_ARGREG
= MICROBLAZE_R10_REGNUM
,
44 MICROBLAZE_R11_REGNUM
,
45 MICROBLAZE_R12_REGNUM
,
46 MICROBLAZE_R13_REGNUM
,
47 MICROBLAZE_R14_REGNUM
,
48 MICROBLAZE_R15_REGNUM
,
49 MICROBLAZE_R16_REGNUM
,
50 MICROBLAZE_R17_REGNUM
,
51 MICROBLAZE_R18_REGNUM
,
52 MICROBLAZE_R19_REGNUM
,
53 MICROBLAZE_R20_REGNUM
,
54 MICROBLAZE_R21_REGNUM
,
55 MICROBLAZE_R22_REGNUM
,
56 MICROBLAZE_R23_REGNUM
,
57 MICROBLAZE_R24_REGNUM
,
58 MICROBLAZE_R25_REGNUM
,
59 MICROBLAZE_R26_REGNUM
,
60 MICROBLAZE_R27_REGNUM
,
61 MICROBLAZE_R28_REGNUM
,
62 MICROBLAZE_R29_REGNUM
,
63 MICROBLAZE_R30_REGNUM
,
64 MICROBLAZE_R31_REGNUM
,
66 MICROBLAZE_MSR_REGNUM
,
67 MICROBLAZE_EAR_REGNUM
,
68 MICROBLAZE_ESR_REGNUM
,
69 MICROBLAZE_FSR_REGNUM
,
70 MICROBLAZE_BTR_REGNUM
,
71 MICROBLAZE_PVR0_REGNUM
,
72 MICROBLAZE_PVR1_REGNUM
,
73 MICROBLAZE_PVR2_REGNUM
,
74 MICROBLAZE_PVR3_REGNUM
,
75 MICROBLAZE_PVR4_REGNUM
,
76 MICROBLAZE_PVR5_REGNUM
,
77 MICROBLAZE_PVR6_REGNUM
,
78 MICROBLAZE_PVR7_REGNUM
,
79 MICROBLAZE_PVR8_REGNUM
,
80 MICROBLAZE_PVR9_REGNUM
,
81 MICROBLAZE_PVR10_REGNUM
,
82 MICROBLAZE_PVR11_REGNUM
,
83 MICROBLAZE_REDR_REGNUM
,
84 MICROBLAZE_RPID_REGNUM
,
85 MICROBLAZE_RZPR_REGNUM
,
86 MICROBLAZE_RTLBX_REGNUM
,
87 MICROBLAZE_RTLBSX_REGNUM
,
88 MICROBLAZE_RTLBLO_REGNUM
,
89 MICROBLAZE_RTLBHI_REGNUM
,
90 MICROBLAZE_SLR_REGNUM
, MICROBLAZE_NUM_CORE_REGS
= MICROBLAZE_SLR_REGNUM
,
91 MICROBLAZE_SHR_REGNUM
,
95 struct microblaze_frame_cache
101 /* Do we have a frame? */
107 /* Frame register. */
110 /* Offsets to saved registers. */
111 int register_offsets
[MICROBLAZE_NUM_REGS
];
113 /* Table of saved registers. */
114 struct trad_frame_saved_reg
*saved_regs
;
116 /* All registers are 32 bits. */
117 #define MICROBLAZE_REGISTER_SIZE 4
119 /* MICROBLAZE_BREAKPOINT defines the breakpoint that should be used.
120 Only used for native debugging. */
121 #define MICROBLAZE_BREAKPOINT {0xb9, 0xcc, 0x00, 0x60}
123 #endif /* microblaze-tdep.h */