Import alloca explicitly
[deliverable/binutils-gdb.git] / gdb / microblaze-tdep.h
1 /* Target-dependent code for Xilinx MicroBlaze.
2
3 Copyright (C) 2009-2014 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 */
This page took 0.031947 seconds and 4 git commands to generate.