GDB (xrefs)

/tmp/gdb-8.1/gdb/microblaze-tdep.h
Go to the documentation of this file.
1 /* Target-dependent code for Xilinx MicroBlaze.
2
3 Copyright (C) 2009-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 MICROBLAZE_TDEP_H
21 #define MICROBLAZE_TDEP_H 1
22
23
24 /* Microblaze architecture-specific information. */
25 struct gdbarch_tdep
26 {
27 };
28
29 /* Register numbers. */
30 enum microblaze_regnum
31 {
32 MICROBLAZE_R0_REGNUM,
33 MICROBLAZE_R1_REGNUM, MICROBLAZE_SP_REGNUM = MICROBLAZE_R1_REGNUM,
34 MICROBLAZE_R2_REGNUM,
35 MICROBLAZE_R3_REGNUM, MICROBLAZE_RETVAL_REGNUM = MICROBLAZE_R3_REGNUM,
36 MICROBLAZE_R4_REGNUM,
37 MICROBLAZE_R5_REGNUM, MICROBLAZE_FIRST_ARGREG = MICROBLAZE_R5_REGNUM,
38 MICROBLAZE_R6_REGNUM,
39 MICROBLAZE_R7_REGNUM,
40 MICROBLAZE_R8_REGNUM,
41 MICROBLAZE_R9_REGNUM,
42 MICROBLAZE_R10_REGNUM, MICROBLAZE_LAST_ARGREG = MICROBLAZE_R10_REGNUM,
43 MICROBLAZE_R11_REGNUM,
44 MICROBLAZE_R12_REGNUM,
45 MICROBLAZE_R13_REGNUM,
46 MICROBLAZE_R14_REGNUM,
47 MICROBLAZE_R15_REGNUM,
48 MICROBLAZE_R16_REGNUM,
49 MICROBLAZE_R17_REGNUM,
50 MICROBLAZE_R18_REGNUM,
51 MICROBLAZE_R19_REGNUM,
52 MICROBLAZE_R20_REGNUM,
53 MICROBLAZE_R21_REGNUM,
54 MICROBLAZE_R22_REGNUM,
55 MICROBLAZE_R23_REGNUM,
56 MICROBLAZE_R24_REGNUM,
57 MICROBLAZE_R25_REGNUM,
58 MICROBLAZE_R26_REGNUM,
59 MICROBLAZE_R27_REGNUM,
60 MICROBLAZE_R28_REGNUM,
61 MICROBLAZE_R29_REGNUM,
62 MICROBLAZE_R30_REGNUM,
63 MICROBLAZE_R31_REGNUM,
64 MICROBLAZE_PC_REGNUM,
65 MICROBLAZE_MSR_REGNUM,
66 MICROBLAZE_EAR_REGNUM,
67 MICROBLAZE_ESR_REGNUM,
68 MICROBLAZE_FSR_REGNUM,
69 MICROBLAZE_BTR_REGNUM,
70 MICROBLAZE_PVR0_REGNUM,
71 MICROBLAZE_PVR1_REGNUM,
72 MICROBLAZE_PVR2_REGNUM,
73 MICROBLAZE_PVR3_REGNUM,
74 MICROBLAZE_PVR4_REGNUM,
75 MICROBLAZE_PVR5_REGNUM,
76 MICROBLAZE_PVR6_REGNUM,
77 MICROBLAZE_PVR7_REGNUM,
78 MICROBLAZE_PVR8_REGNUM,
79 MICROBLAZE_PVR9_REGNUM,
80 MICROBLAZE_PVR10_REGNUM,
81 MICROBLAZE_PVR11_REGNUM,
82 MICROBLAZE_REDR_REGNUM,
83 MICROBLAZE_RPID_REGNUM,
84 MICROBLAZE_RZPR_REGNUM,
85 MICROBLAZE_RTLBX_REGNUM,
86 MICROBLAZE_RTLBSX_REGNUM,
87 MICROBLAZE_RTLBLO_REGNUM,
88 MICROBLAZE_RTLBHI_REGNUM,
89 MICROBLAZE_SLR_REGNUM, MICROBLAZE_NUM_CORE_REGS = MICROBLAZE_SLR_REGNUM,
90 MICROBLAZE_SHR_REGNUM,
91 MICROBLAZE_NUM_REGS
92 };
93
94 struct microblaze_frame_cache
95 {
96 /* Base address. */
97 CORE_ADDR base;
98 CORE_ADDR pc;
99
100 /* Do we have a frame? */
101 int frameless_p;
102
103 /* Frame size. */
104 int framesize;
105
106 /* Frame register. */
107 int fp_regnum;
108
109 /* Offsets to saved registers. */
110 int register_offsets[MICROBLAZE_NUM_REGS];
111
112 /* Table of saved registers. */
113 struct trad_frame_saved_reg *saved_regs;
114 };
115 /* All registers are 32 bits. */
116 #define MICROBLAZE_REGISTER_SIZE 4
117
118 /* MICROBLAZE_BREAKPOINT defines the breakpoint that should be used.
119 Only used for native debugging. */
120 #define MICROBLAZE_BREAKPOINT {0xb9, 0xcc, 0x00, 0x60}
121
122 #endif /* microblaze-tdep.h */
MICROBLAZE_R21_REGNUM
Definition: microblaze-tdep.h:53
MICROBLAZE_R7_REGNUM
Definition: microblaze-tdep.h:39
MICROBLAZE_R3_REGNUM
Definition: microblaze-tdep.h:35
microblaze_frame_cache::saved_regs
struct trad_frame_saved_reg * saved_regs
Definition: microblaze-tdep.h:113
MICROBLAZE_R16_REGNUM
Definition: microblaze-tdep.h:48
MICROBLAZE_R1_REGNUM
Definition: microblaze-tdep.h:33
MICROBLAZE_PVR5_REGNUM
Definition: microblaze-tdep.h:75
MICROBLAZE_NUM_CORE_REGS
Definition: microblaze-tdep.h:89
MICROBLAZE_R8_REGNUM
Definition: microblaze-tdep.h:40
CORE_ADDR
bfd_vma CORE_ADDR
Definition: common-types.h:41
MICROBLAZE_R14_REGNUM
Definition: microblaze-tdep.h:46
MICROBLAZE_PVR11_REGNUM
Definition: microblaze-tdep.h:81
MICROBLAZE_SHR_REGNUM
Definition: microblaze-tdep.h:90
microblaze_frame_cache::pc
CORE_ADDR pc
Definition: microblaze-tdep.h:98
gdbarch_tdep
Definition: aarch64-tdep.h:55
MICROBLAZE_PVR0_REGNUM
Definition: microblaze-tdep.h:70
MICROBLAZE_R2_REGNUM
Definition: microblaze-tdep.h:34
MICROBLAZE_R4_REGNUM
Definition: microblaze-tdep.h:36
MICROBLAZE_R25_REGNUM
Definition: microblaze-tdep.h:57
MICROBLAZE_R27_REGNUM
Definition: microblaze-tdep.h:59
MICROBLAZE_RTLBX_REGNUM
Definition: microblaze-tdep.h:85
MICROBLAZE_FIRST_ARGREG
Definition: microblaze-tdep.h:37
microblaze_frame_cache::fp_regnum
int fp_regnum
Definition: microblaze-tdep.h:107
MICROBLAZE_RTLBLO_REGNUM
Definition: microblaze-tdep.h:87
MICROBLAZE_RTLBHI_REGNUM
Definition: microblaze-tdep.h:88
MICROBLAZE_REDR_REGNUM
Definition: microblaze-tdep.h:82
MICROBLAZE_R17_REGNUM
Definition: microblaze-tdep.h:49
MICROBLAZE_EAR_REGNUM
Definition: microblaze-tdep.h:66
MICROBLAZE_PVR9_REGNUM
Definition: microblaze-tdep.h:79
MICROBLAZE_R12_REGNUM
Definition: microblaze-tdep.h:44
MICROBLAZE_R30_REGNUM
Definition: microblaze-tdep.h:62
MICROBLAZE_R13_REGNUM
Definition: microblaze-tdep.h:45
MICROBLAZE_PVR7_REGNUM
Definition: microblaze-tdep.h:77
MICROBLAZE_RZPR_REGNUM
Definition: microblaze-tdep.h:84
MICROBLAZE_R0_REGNUM
Definition: microblaze-tdep.h:32
MICROBLAZE_BTR_REGNUM
Definition: microblaze-tdep.h:69
MICROBLAZE_R15_REGNUM
Definition: microblaze-tdep.h:47
MICROBLAZE_R22_REGNUM
Definition: microblaze-tdep.h:54
microblaze_regnum
microblaze_regnum
Definition: microblaze-tdep.h:30
MICROBLAZE_R18_REGNUM
Definition: microblaze-tdep.h:50
MICROBLAZE_R9_REGNUM
Definition: microblaze-tdep.h:41
MICROBLAZE_MSR_REGNUM
Definition: microblaze-tdep.h:65
MICROBLAZE_RETVAL_REGNUM
Definition: microblaze-tdep.h:35
MICROBLAZE_R31_REGNUM
Definition: microblaze-tdep.h:63
MICROBLAZE_PVR6_REGNUM
Definition: microblaze-tdep.h:76
microblaze_frame_cache::frameless_p
int frameless_p
Definition: microblaze-tdep.h:101
MICROBLAZE_PVR8_REGNUM
Definition: microblaze-tdep.h:78
MICROBLAZE_R24_REGNUM
Definition: microblaze-tdep.h:56
MICROBLAZE_R6_REGNUM
Definition: microblaze-tdep.h:38
MICROBLAZE_R11_REGNUM
Definition: microblaze-tdep.h:43
microblaze_frame_cache
Definition: microblaze-tdep.h:94
MICROBLAZE_SLR_REGNUM
Definition: microblaze-tdep.h:89
MICROBLAZE_R5_REGNUM
Definition: microblaze-tdep.h:37
MICROBLAZE_ESR_REGNUM
Definition: microblaze-tdep.h:67
MICROBLAZE_PVR4_REGNUM
Definition: microblaze-tdep.h:74
MICROBLAZE_PVR3_REGNUM
Definition: microblaze-tdep.h:73
MICROBLAZE_PC_REGNUM
Definition: microblaze-tdep.h:64
microblaze_frame_cache::base
CORE_ADDR base
Definition: microblaze-tdep.h:97
MICROBLAZE_RPID_REGNUM
Definition: microblaze-tdep.h:83
MICROBLAZE_FSR_REGNUM
Definition: microblaze-tdep.h:68
MICROBLAZE_R23_REGNUM
Definition: microblaze-tdep.h:55
MICROBLAZE_R26_REGNUM
Definition: microblaze-tdep.h:58
MICROBLAZE_R10_REGNUM
Definition: microblaze-tdep.h:42
MICROBLAZE_PVR2_REGNUM
Definition: microblaze-tdep.h:72
MICROBLAZE_R19_REGNUM
Definition: microblaze-tdep.h:51
MICROBLAZE_R28_REGNUM
Definition: microblaze-tdep.h:60
MICROBLAZE_NUM_REGS
Definition: microblaze-tdep.h:91
MICROBLAZE_RTLBSX_REGNUM
Definition: microblaze-tdep.h:86
microblaze_frame_cache::register_offsets
int register_offsets[MICROBLAZE_NUM_REGS]
Definition: microblaze-tdep.h:110
MICROBLAZE_SP_REGNUM
Definition: microblaze-tdep.h:33
MICROBLAZE_PVR10_REGNUM
Definition: microblaze-tdep.h:80
trad_frame_saved_reg
Definition: trad-frame.h:81
MICROBLAZE_LAST_ARGREG
Definition: microblaze-tdep.h:42
microblaze_frame_cache::framesize
int framesize
Definition: microblaze-tdep.h:104
MICROBLAZE_PVR1_REGNUM
Definition: microblaze-tdep.h:71
MICROBLAZE_R29_REGNUM
Definition: microblaze-tdep.h:61
MICROBLAZE_R20_REGNUM
Definition: microblaze-tdep.h:52