1 |
1181 |
sfurman |
/* OBSOLETE /* Target-specific definition for the Mitsubishi D30V */
|
2 |
|
|
/* OBSOLETE Copyright 1997, 1998, 1999, 2000 Free Software Foundation, Inc. */
|
3 |
|
|
/* OBSOLETE */
|
4 |
|
|
/* OBSOLETE This file is part of GDB. */
|
5 |
|
|
/* OBSOLETE */
|
6 |
|
|
/* OBSOLETE This program is free software; you can redistribute it and/or modify */
|
7 |
|
|
/* OBSOLETE it under the terms of the GNU General Public License as published by */
|
8 |
|
|
/* OBSOLETE the Free Software Foundation; either version 2 of the License, or */
|
9 |
|
|
/* OBSOLETE (at your option) any later version. */
|
10 |
|
|
/* OBSOLETE */
|
11 |
|
|
/* OBSOLETE This program is distributed in the hope that it will be useful, */
|
12 |
|
|
/* OBSOLETE but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
13 |
|
|
/* OBSOLETE MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
14 |
|
|
/* OBSOLETE GNU General Public License for more details. */
|
15 |
|
|
/* OBSOLETE */
|
16 |
|
|
/* OBSOLETE You should have received a copy of the GNU General Public License */
|
17 |
|
|
/* OBSOLETE along with this program; if not, write to the Free Software */
|
18 |
|
|
/* OBSOLETE Foundation, Inc., 59 Temple Place - Suite 330, */
|
19 |
|
|
/* OBSOLETE Boston, MA 02111-1307, USA. */ */
|
20 |
|
|
/* OBSOLETE */
|
21 |
|
|
/* OBSOLETE #ifndef TM_D30V_H */
|
22 |
|
|
/* OBSOLETE #define TM_D30V_H */
|
23 |
|
|
/* OBSOLETE */
|
24 |
|
|
/* OBSOLETE #include "regcache.h" */
|
25 |
|
|
/* OBSOLETE */
|
26 |
|
|
/* OBSOLETE /* Offset from address of function to start of its code. */
|
27 |
|
|
/* OBSOLETE Zero on most machines. */ */
|
28 |
|
|
/* OBSOLETE */
|
29 |
|
|
/* OBSOLETE #define FUNCTION_START_OFFSET 0 */
|
30 |
|
|
/* OBSOLETE */
|
31 |
|
|
/* OBSOLETE /* these are the addresses the D30V-EVA board maps data */ */
|
32 |
|
|
/* OBSOLETE /* and instruction memory to. */ */
|
33 |
|
|
/* OBSOLETE */
|
34 |
|
|
/* OBSOLETE #define DMEM_START 0x20000000 */
|
35 |
|
|
/* OBSOLETE #define IMEM_START 0x00000000 /* was 0x10000000 */ */
|
36 |
|
|
/* OBSOLETE #define STACK_START 0x20007ffe */
|
37 |
|
|
/* OBSOLETE */
|
38 |
|
|
/* OBSOLETE /* Forward decls for prototypes */ */
|
39 |
|
|
/* OBSOLETE struct frame_info; */
|
40 |
|
|
/* OBSOLETE struct frame_saved_regs; */
|
41 |
|
|
/* OBSOLETE struct type; */
|
42 |
|
|
/* OBSOLETE struct value; */
|
43 |
|
|
/* OBSOLETE */
|
44 |
|
|
/* OBSOLETE /* Advance PC across any function entry prologue instructions */
|
45 |
|
|
/* OBSOLETE to reach some "real" code. */ */
|
46 |
|
|
/* OBSOLETE */
|
47 |
|
|
/* OBSOLETE extern CORE_ADDR d30v_skip_prologue (CORE_ADDR); */
|
48 |
|
|
/* OBSOLETE #define SKIP_PROLOGUE(ip) (d30v_skip_prologue (ip)) */
|
49 |
|
|
/* OBSOLETE */
|
50 |
|
|
/* OBSOLETE */
|
51 |
|
|
/* OBSOLETE /* Stack grows downward. */ */
|
52 |
|
|
/* OBSOLETE #define INNER_THAN(lhs,rhs) ((lhs) < (rhs)) */
|
53 |
|
|
/* OBSOLETE */
|
54 |
|
|
/* OBSOLETE /* for a breakpoint, use "dbt || nop" */ */
|
55 |
|
|
/* OBSOLETE #define BREAKPOINT {0x00, 0xb0, 0x00, 0x00,\ */
|
56 |
|
|
/* OBSOLETE 0x00, 0xf0, 0x00, 0x00} */
|
57 |
|
|
/* OBSOLETE */
|
58 |
|
|
/* OBSOLETE /* If your kernel resets the pc after the trap happens you may need to */
|
59 |
|
|
/* OBSOLETE define this before including this file. */ */
|
60 |
|
|
/* OBSOLETE #define DECR_PC_AFTER_BREAK 0 */
|
61 |
|
|
/* OBSOLETE */
|
62 |
|
|
/* OBSOLETE #define REGISTER_NAMES \ */
|
63 |
|
|
/* OBSOLETE { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \ */
|
64 |
|
|
/* OBSOLETE "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \ */
|
65 |
|
|
/* OBSOLETE "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", \ */
|
66 |
|
|
/* OBSOLETE "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31", \ */
|
67 |
|
|
/* OBSOLETE "r32", "r33", "r34", "r35", "r36", "r37", "r38", "r39", \ */
|
68 |
|
|
/* OBSOLETE "r40", "r41", "r42", "r43", "r44", "r45", "r46", "r47", \ */
|
69 |
|
|
/* OBSOLETE "r48", "r49", "r50", "r51", "r52", "r53", "r54", "r55", \ */
|
70 |
|
|
/* OBSOLETE "r56", "r57", "r58", "r59", "r60", "r61", "r62", "r63", \ */
|
71 |
|
|
/* OBSOLETE "spi", "spu", \ */
|
72 |
|
|
/* OBSOLETE "psw", "bpsw", "pc", "bpc", "dpsw", "dpc", "cr6", "rpt_c", \ */
|
73 |
|
|
/* OBSOLETE "rpt_s", "rpt_e", "mod_s", "mod_e", "cr12", "cr13", "iba", "eit_vb",\ */
|
74 |
|
|
/* OBSOLETE "int_s", "int_m", "a0", "a1" \ */
|
75 |
|
|
/* OBSOLETE } */
|
76 |
|
|
/* OBSOLETE */
|
77 |
|
|
/* OBSOLETE #define NUM_REGS 86 */
|
78 |
|
|
/* OBSOLETE */
|
79 |
|
|
/* OBSOLETE /* Register numbers of various important registers. */
|
80 |
|
|
/* OBSOLETE Note that some of these values are "real" register numbers, */
|
81 |
|
|
/* OBSOLETE and correspond to the general registers of the machine, */
|
82 |
|
|
/* OBSOLETE and some are "phony" register numbers which are too large */
|
83 |
|
|
/* OBSOLETE to be actual register numbers as far as the user is concerned */
|
84 |
|
|
/* OBSOLETE but do serve to get the desired values when passed to read_register. */ */
|
85 |
|
|
/* OBSOLETE */
|
86 |
|
|
/* OBSOLETE #define R0_REGNUM 0 */
|
87 |
|
|
/* OBSOLETE #define FP_REGNUM 61 */
|
88 |
|
|
/* OBSOLETE #define LR_REGNUM 62 */
|
89 |
|
|
/* OBSOLETE #define SP_REGNUM 63 */
|
90 |
|
|
/* OBSOLETE #define SPI_REGNUM 64 /* Interrupt stack pointer */ */
|
91 |
|
|
/* OBSOLETE #define SPU_REGNUM 65 /* User stack pointer */ */
|
92 |
|
|
/* OBSOLETE #define CREGS_START 66 */
|
93 |
|
|
/* OBSOLETE */
|
94 |
|
|
/* OBSOLETE #define PSW_REGNUM (CREGS_START + 0) /* psw, bpsw, or dpsw??? */ */
|
95 |
|
|
/* OBSOLETE #define PSW_SM (((unsigned long)0x80000000) >> 0) /* Stack mode: 0/SPI */ */
|
96 |
|
|
/* OBSOLETE /* 1/SPU */ */
|
97 |
|
|
/* OBSOLETE #define PSW_EA (((unsigned long)0x80000000) >> 2) /* Execution status */ */
|
98 |
|
|
/* OBSOLETE #define PSW_DB (((unsigned long)0x80000000) >> 3) /* Debug mode */ */
|
99 |
|
|
/* OBSOLETE #define PSW_DS (((unsigned long)0x80000000) >> 4) /* Debug EIT status */ */
|
100 |
|
|
/* OBSOLETE #define PSW_IE (((unsigned long)0x80000000) >> 5) /* Interrupt enable */ */
|
101 |
|
|
/* OBSOLETE #define PSW_RP (((unsigned long)0x80000000) >> 6) /* Repeat enable */ */
|
102 |
|
|
/* OBSOLETE #define PSW_MD (((unsigned long)0x80000000) >> 7) /* Modulo enable */ */
|
103 |
|
|
/* OBSOLETE #define PSW_F0 (((unsigned long)0x80000000) >> 17) /* F0 flag */ */
|
104 |
|
|
/* OBSOLETE #define PSW_F1 (((unsigned long)0x80000000) >> 19) /* F1 flag */ */
|
105 |
|
|
/* OBSOLETE #define PSW_F2 (((unsigned long)0x80000000) >> 21) /* F2 flag */ */
|
106 |
|
|
/* OBSOLETE #define PSW_F3 (((unsigned long)0x80000000) >> 23) /* F3 flag */ */
|
107 |
|
|
/* OBSOLETE #define PSW_S (((unsigned long)0x80000000) >> 25) /* Saturation flag */ */
|
108 |
|
|
/* OBSOLETE #define PSW_V (((unsigned long)0x80000000) >> 27) /* Overflow flag */ */
|
109 |
|
|
/* OBSOLETE #define PSW_VA (((unsigned long)0x80000000) >> 29) /* Accum. overflow */ */
|
110 |
|
|
/* OBSOLETE #define PSW_C (((unsigned long)0x80000000) >> 31) /* Carry/Borrow flag */ */
|
111 |
|
|
/* OBSOLETE */
|
112 |
|
|
/* OBSOLETE #define BPSW_REGNUM (CREGS_START + 1) /* Backup PSW (on interrupt) */ */
|
113 |
|
|
/* OBSOLETE #define PC_REGNUM (CREGS_START + 2) /* pc, bpc, or dpc??? */ */
|
114 |
|
|
/* OBSOLETE #define BPC_REGNUM (CREGS_START + 3) /* Backup PC (on interrupt) */ */
|
115 |
|
|
/* OBSOLETE #define DPSW_REGNUM (CREGS_START + 4) /* Backup PSW (on debug trap) */ */
|
116 |
|
|
/* OBSOLETE #define DPC_REGNUM (CREGS_START + 5) /* Backup PC (on debug trap) */ */
|
117 |
|
|
/* OBSOLETE #define RPT_C_REGNUM (CREGS_START + 7) /* Loop count */ */
|
118 |
|
|
/* OBSOLETE #define RPT_S_REGNUM (CREGS_START + 8) /* Loop start address */ */
|
119 |
|
|
/* OBSOLETE #define RPT_E_REGNUM (CREGS_START + 9) /* Loop end address */ */
|
120 |
|
|
/* OBSOLETE #define MOD_S_REGNUM (CREGS_START + 10) */
|
121 |
|
|
/* OBSOLETE #define MOD_E_REGNUM (CREGS_START + 11) */
|
122 |
|
|
/* OBSOLETE #define IBA_REGNUM (CREGS_START + 14) /* Instruction break address */ */
|
123 |
|
|
/* OBSOLETE #define EIT_VB_REGNUM (CREGS_START + 15) /* Vector base address */ */
|
124 |
|
|
/* OBSOLETE #define INT_S_REGNUM (CREGS_START + 16) /* Interrupt status */ */
|
125 |
|
|
/* OBSOLETE #define INT_M_REGNUM (CREGS_START + 17) /* Interrupt mask */ */
|
126 |
|
|
/* OBSOLETE #define A0_REGNUM 84 */
|
127 |
|
|
/* OBSOLETE #define A1_REGNUM 85 */
|
128 |
|
|
/* OBSOLETE */
|
129 |
|
|
/* OBSOLETE /* Say how much memory is needed to store a copy of the register set */ */
|
130 |
|
|
/* OBSOLETE #define REGISTER_BYTES ((NUM_REGS - 2) * 4 + 2 * 8) */
|
131 |
|
|
/* OBSOLETE */
|
132 |
|
|
/* OBSOLETE /* Index within `registers' of the first byte of the space for */
|
133 |
|
|
/* OBSOLETE register N. */ */
|
134 |
|
|
/* OBSOLETE */
|
135 |
|
|
/* OBSOLETE #define REGISTER_BYTE(N) \ */
|
136 |
|
|
/* OBSOLETE ( ((N) >= A0_REGNUM) ? ( ((N) - A0_REGNUM) * 8 + A0_REGNUM * 4 ) : ((N) * 4) ) */
|
137 |
|
|
/* OBSOLETE */
|
138 |
|
|
/* OBSOLETE /* Number of bytes of storage in the actual machine representation */
|
139 |
|
|
/* OBSOLETE for register N. */ */
|
140 |
|
|
/* OBSOLETE */
|
141 |
|
|
/* OBSOLETE #define REGISTER_RAW_SIZE(N) ( ((N) >= A0_REGNUM) ? 8 : 4 ) */
|
142 |
|
|
/* OBSOLETE */
|
143 |
|
|
/* OBSOLETE /* Number of bytes of storage in the program's representation */
|
144 |
|
|
/* OBSOLETE for register N. */ */
|
145 |
|
|
/* OBSOLETE #define REGISTER_VIRTUAL_SIZE(N) REGISTER_RAW_SIZE(N) */
|
146 |
|
|
/* OBSOLETE */
|
147 |
|
|
/* OBSOLETE /* Largest value REGISTER_RAW_SIZE can have. */ */
|
148 |
|
|
/* OBSOLETE */
|
149 |
|
|
/* OBSOLETE #define MAX_REGISTER_RAW_SIZE 8 */
|
150 |
|
|
/* OBSOLETE */
|
151 |
|
|
/* OBSOLETE /* Largest value REGISTER_VIRTUAL_SIZE can have. */ */
|
152 |
|
|
/* OBSOLETE */
|
153 |
|
|
/* OBSOLETE #define MAX_REGISTER_VIRTUAL_SIZE 8 */
|
154 |
|
|
/* OBSOLETE */
|
155 |
|
|
/* OBSOLETE /* Return the GDB type object for the "standard" data type */
|
156 |
|
|
/* OBSOLETE of data in register N. */ */
|
157 |
|
|
/* OBSOLETE */
|
158 |
|
|
/* OBSOLETE #define REGISTER_VIRTUAL_TYPE(N) \ */
|
159 |
|
|
/* OBSOLETE ( ((N) < A0_REGNUM ) ? builtin_type_long : builtin_type_long_long) */
|
160 |
|
|
/* OBSOLETE */
|
161 |
|
|
/* OBSOLETE /* Writing to r0 is a noop (not an error or exception or anything like */
|
162 |
|
|
/* OBSOLETE that, however). */ */
|
163 |
|
|
/* OBSOLETE */
|
164 |
|
|
/* OBSOLETE #define CANNOT_STORE_REGISTER(regno) ((regno) == R0_REGNUM) */
|
165 |
|
|
/* OBSOLETE */
|
166 |
|
|
/* OBSOLETE void d30v_do_registers_info (int regnum, int fpregs); */
|
167 |
|
|
/* OBSOLETE */
|
168 |
|
|
/* OBSOLETE #define DO_REGISTERS_INFO d30v_do_registers_info */
|
169 |
|
|
/* OBSOLETE */
|
170 |
|
|
/* OBSOLETE /* Store the address of the place in which to copy the structure the */
|
171 |
|
|
/* OBSOLETE subroutine will return. This is called from call_function. */
|
172 |
|
|
/* OBSOLETE */
|
173 |
|
|
/* OBSOLETE We store structs through a pointer passed in R2 */ */
|
174 |
|
|
/* OBSOLETE */
|
175 |
|
|
/* OBSOLETE #define STORE_STRUCT_RETURN(ADDR, SP) \ */
|
176 |
|
|
/* OBSOLETE { write_register (2, (ADDR)); } */
|
177 |
|
|
/* OBSOLETE */
|
178 |
|
|
/* OBSOLETE */
|
179 |
|
|
/* OBSOLETE /* Write into appropriate registers a function return value */
|
180 |
|
|
/* OBSOLETE of type TYPE, given in virtual format. */
|
181 |
|
|
/* OBSOLETE */
|
182 |
|
|
/* OBSOLETE Things always get returned in R2/R3 */ */
|
183 |
|
|
/* OBSOLETE */
|
184 |
|
|
/* OBSOLETE #define STORE_RETURN_VALUE(TYPE,VALBUF) \ */
|
185 |
|
|
/* OBSOLETE write_register_bytes (REGISTER_BYTE(2), VALBUF, TYPE_LENGTH (TYPE)) */
|
186 |
|
|
/* OBSOLETE */
|
187 |
|
|
/* OBSOLETE */
|
188 |
|
|
/* OBSOLETE /* Extract from an array REGBUF containing the (raw) register state */
|
189 |
|
|
/* OBSOLETE the address in which a function should return its structure value, */
|
190 |
|
|
/* OBSOLETE as a CORE_ADDR (or an expression that can be used as one). */ */
|
191 |
|
|
/* OBSOLETE #define DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) (((CORE_ADDR *)(REGBUF))[2]) */
|
192 |
|
|
/* OBSOLETE */
|
193 |
|
|
/* OBSOLETE */
|
194 |
|
|
/* OBSOLETE /* Define other aspects of the stack frame. */
|
195 |
|
|
/* OBSOLETE we keep a copy of the worked out return pc lying around, since it */
|
196 |
|
|
/* OBSOLETE is a useful bit of info */ */
|
197 |
|
|
/* OBSOLETE */
|
198 |
|
|
/* OBSOLETE #define EXTRA_FRAME_INFO \ */
|
199 |
|
|
/* OBSOLETE CORE_ADDR return_pc; \ */
|
200 |
|
|
/* OBSOLETE CORE_ADDR dummy; \ */
|
201 |
|
|
/* OBSOLETE int frameless; \ */
|
202 |
|
|
/* OBSOLETE int size; */
|
203 |
|
|
/* OBSOLETE */
|
204 |
|
|
/* OBSOLETE #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \ */
|
205 |
|
|
/* OBSOLETE d30v_init_extra_frame_info(fromleaf, fi) */
|
206 |
|
|
/* OBSOLETE */
|
207 |
|
|
/* OBSOLETE extern void d30v_init_extra_frame_info (int fromleaf, struct frame_info *fi); */
|
208 |
|
|
/* OBSOLETE */
|
209 |
|
|
/* OBSOLETE /* A macro that tells us whether the function invocation represented */
|
210 |
|
|
/* OBSOLETE by FI does not have a frame on the stack associated with it. If it */
|
211 |
|
|
/* OBSOLETE does not, FRAMELESS is set to 1, else 0. */ */
|
212 |
|
|
/* OBSOLETE */
|
213 |
|
|
/* OBSOLETE #define FRAMELESS_FUNCTION_INVOCATION(FI) \ */
|
214 |
|
|
/* OBSOLETE (frameless_look_for_prologue (FI)) */
|
215 |
|
|
/* OBSOLETE */
|
216 |
|
|
/* OBSOLETE CORE_ADDR d30v_frame_chain (struct frame_info *frame); */
|
217 |
|
|
/* OBSOLETE #define FRAME_CHAIN(FRAME) d30v_frame_chain(FRAME) */
|
218 |
|
|
/* OBSOLETE extern int d30v_frame_chain_valid (CORE_ADDR, struct frame_info *); */
|
219 |
|
|
/* OBSOLETE #define FRAME_CHAIN_VALID(chain, thisframe) d30v_frame_chain_valid (chain, thisframe) */
|
220 |
|
|
/* OBSOLETE #define FRAME_SAVED_PC(FRAME) ((FRAME)->return_pc) */
|
221 |
|
|
/* OBSOLETE #define FRAME_ARGS_ADDRESS(fi) (fi)->frame */
|
222 |
|
|
/* OBSOLETE #define FRAME_LOCALS_ADDRESS(fi) (fi)->frame */
|
223 |
|
|
/* OBSOLETE */
|
224 |
|
|
/* OBSOLETE void d30v_init_frame_pc (int fromleaf, struct frame_info *prev); */
|
225 |
|
|
/* OBSOLETE #define INIT_FRAME_PC_FIRST(fromleaf, prev) d30v_init_frame_pc(fromleaf, prev) */
|
226 |
|
|
/* OBSOLETE #define INIT_FRAME_PC(fromleaf, prev) /* nada */ */
|
227 |
|
|
/* OBSOLETE */
|
228 |
|
|
/* OBSOLETE /* Immediately after a function call, return the saved pc. We can't */ */
|
229 |
|
|
/* OBSOLETE /* use frame->return_pc beause that is determined by reading R62 off the */ */
|
230 |
|
|
/* OBSOLETE /* stack and that may not be written yet. */ */
|
231 |
|
|
/* OBSOLETE */
|
232 |
|
|
/* OBSOLETE #define SAVED_PC_AFTER_CALL(frame) (read_register(LR_REGNUM)) */
|
233 |
|
|
/* OBSOLETE */
|
234 |
|
|
/* OBSOLETE /* Set VAL to the number of args passed to frame described by FI. */
|
235 |
|
|
/* OBSOLETE Can set VAL to -1, meaning no way to tell. */ */
|
236 |
|
|
/* OBSOLETE /* We can't tell how many args there are */ */
|
237 |
|
|
/* OBSOLETE */
|
238 |
|
|
/* OBSOLETE #define FRAME_NUM_ARGS(fi) (-1) */
|
239 |
|
|
/* OBSOLETE */
|
240 |
|
|
/* OBSOLETE /* Return number of bytes at start of arglist that are not really args. */ */
|
241 |
|
|
/* OBSOLETE */
|
242 |
|
|
/* OBSOLETE #define FRAME_ARGS_SKIP 0 */
|
243 |
|
|
/* OBSOLETE */
|
244 |
|
|
/* OBSOLETE */
|
245 |
|
|
/* OBSOLETE /* Put here the code to store, into a struct frame_saved_regs, */
|
246 |
|
|
/* OBSOLETE the addresses of the saved registers of frame described by FRAME_INFO. */
|
247 |
|
|
/* OBSOLETE This includes special registers such as pc and fp saved in special */
|
248 |
|
|
/* OBSOLETE ways in the stack frame. sp is even more special: */
|
249 |
|
|
/* OBSOLETE the address we return for it IS the sp for the next frame. */ */
|
250 |
|
|
/* OBSOLETE */
|
251 |
|
|
/* OBSOLETE #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ */
|
252 |
|
|
/* OBSOLETE d30v_frame_find_saved_regs(frame_info, &(frame_saved_regs)) */
|
253 |
|
|
/* OBSOLETE */
|
254 |
|
|
/* OBSOLETE extern void d30v_frame_find_saved_regs (struct frame_info *, */
|
255 |
|
|
/* OBSOLETE struct frame_saved_regs *); */
|
256 |
|
|
/* OBSOLETE */
|
257 |
|
|
/* OBSOLETE /* DUMMY FRAMES. Need these to support inferior function calls. */
|
258 |
|
|
/* OBSOLETE They work like this on D30V: */
|
259 |
|
|
/* OBSOLETE First we set a breakpoint at 0 or __start. */
|
260 |
|
|
/* OBSOLETE Then we push all the registers onto the stack. */
|
261 |
|
|
/* OBSOLETE Then put the function arguments in the proper registers and set r13 */
|
262 |
|
|
/* OBSOLETE to our breakpoint address. */
|
263 |
|
|
/* OBSOLETE Finally call the function directly. */
|
264 |
|
|
/* OBSOLETE When it hits the breakpoint, clear the break point and pop the old */
|
265 |
|
|
/* OBSOLETE register contents off the stack. */ */
|
266 |
|
|
/* OBSOLETE */
|
267 |
|
|
/* OBSOLETE #define CALL_DUMMY { 0 } */
|
268 |
|
|
/* OBSOLETE #define PUSH_DUMMY_FRAME */
|
269 |
|
|
/* OBSOLETE #define CALL_DUMMY_START_OFFSET 0 */
|
270 |
|
|
/* OBSOLETE #define CALL_DUMMY_LOCATION AT_ENTRY_POINT */
|
271 |
|
|
/* OBSOLETE #define CALL_DUMMY_BREAKPOINT_OFFSET (0) */
|
272 |
|
|
/* OBSOLETE */
|
273 |
|
|
/* OBSOLETE extern CORE_ADDR d30v_call_dummy_address (void); */
|
274 |
|
|
/* OBSOLETE #define CALL_DUMMY_ADDRESS() d30v_call_dummy_address() */
|
275 |
|
|
/* OBSOLETE */
|
276 |
|
|
/* OBSOLETE #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \ */
|
277 |
|
|
/* OBSOLETE sp = d30v_fix_call_dummy (dummyname, pc, fun, nargs, args, type, gcc_p) */
|
278 |
|
|
/* OBSOLETE */
|
279 |
|
|
/* OBSOLETE #define PC_IN_CALL_DUMMY(pc, sp, frame_address) ( pc == IMEM_START + 4 ) */
|
280 |
|
|
/* OBSOLETE */
|
281 |
|
|
/* OBSOLETE extern CORE_ADDR d30v_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR, */
|
282 |
|
|
/* OBSOLETE int, struct value **, */
|
283 |
|
|
/* OBSOLETE struct type *, int); */
|
284 |
|
|
/* OBSOLETE #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ */
|
285 |
|
|
/* OBSOLETE (d30v_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) */
|
286 |
|
|
/* OBSOLETE extern CORE_ADDR d30v_push_arguments (int, struct value **, CORE_ADDR, int, */
|
287 |
|
|
/* OBSOLETE CORE_ADDR); */
|
288 |
|
|
/* OBSOLETE */
|
289 |
|
|
/* OBSOLETE */
|
290 |
|
|
/* OBSOLETE /* Extract from an array REGBUF containing the (raw) register state */
|
291 |
|
|
/* OBSOLETE a function return value of type TYPE, and copy that, in virtual format, */
|
292 |
|
|
/* OBSOLETE into VALBUF. */ */
|
293 |
|
|
/* OBSOLETE */
|
294 |
|
|
/* OBSOLETE #define DEPRECATED_EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ */
|
295 |
|
|
/* OBSOLETE d30v_extract_return_value(TYPE, REGBUF, VALBUF) */
|
296 |
|
|
/* OBSOLETE extern void d30v_extract_return_value (struct type *, char *, char *); */
|
297 |
|
|
/* OBSOLETE */
|
298 |
|
|
/* OBSOLETE */
|
299 |
|
|
/* OBSOLETE /* Discard from the stack the innermost frame, */
|
300 |
|
|
/* OBSOLETE restoring all saved registers. */ */
|
301 |
|
|
/* OBSOLETE #define POP_FRAME d30v_pop_frame(); */
|
302 |
|
|
/* OBSOLETE extern void d30v_pop_frame (void); */
|
303 |
|
|
/* OBSOLETE */
|
304 |
|
|
/* OBSOLETE #define REGISTER_SIZE 4 */
|
305 |
|
|
/* OBSOLETE */
|
306 |
|
|
/* OBSOLETE /* Need to handle SP special, as we need to select between spu and spi. */ */
|
307 |
|
|
/* OBSOLETE #if 0 /* XXX until the simulator is fixed */ */
|
308 |
|
|
/* OBSOLETE #define TARGET_READ_SP() ((read_register (PSW_REGNUM) & PSW_SM) \ */
|
309 |
|
|
/* OBSOLETE ? read_register (SPU_REGNUM) \ */
|
310 |
|
|
/* OBSOLETE : read_register (SPI_REGNUM)) */
|
311 |
|
|
/* OBSOLETE */
|
312 |
|
|
/* OBSOLETE #define TARGET_WRITE_SP(val) ((read_register (PSW_REGNUM) & PSW_SM) \ */
|
313 |
|
|
/* OBSOLETE ? write_register (SPU_REGNUM, (val)) \ */
|
314 |
|
|
/* OBSOLETE : write_register (SPI_REGNUM, (val))) */
|
315 |
|
|
/* OBSOLETE #endif */
|
316 |
|
|
/* OBSOLETE */
|
317 |
|
|
/* OBSOLETE #define STACK_ALIGN(len) (((len) + 7 ) & ~7) */
|
318 |
|
|
/* OBSOLETE */
|
319 |
|
|
/* OBSOLETE /* Turn this on to cause remote-sim.c to use sim_set/clear_breakpoint. */ */
|
320 |
|
|
/* OBSOLETE */
|
321 |
|
|
/* OBSOLETE #define SIM_HAS_BREAKPOINTS */
|
322 |
|
|
/* OBSOLETE */
|
323 |
|
|
/* OBSOLETE #endif /* TM_D30V_H */ */
|