1 |
578 |
markom |
/* OBSOLETE /* Parameters for NYU Ultracomputer 29000 target, for GDB, the GNU debugger. */
|
2 |
|
|
/* OBSOLETE Copyright 1990, 1991, 1993 Free Software Foundation, Inc. */
|
3 |
|
|
/* OBSOLETE Contributed by David Wood @ New York University (wood@nyu.edu). */
|
4 |
|
|
/* OBSOLETE */
|
5 |
|
|
/* OBSOLETE This file is part of GDB. */
|
6 |
|
|
/* OBSOLETE */
|
7 |
|
|
/* OBSOLETE This program is free software; you can redistribute it and/or modify */
|
8 |
|
|
/* OBSOLETE it under the terms of the GNU General Public License as published by */
|
9 |
|
|
/* OBSOLETE the Free Software Foundation; either version 2 of the License, or */
|
10 |
|
|
/* OBSOLETE (at your option) any later version. */
|
11 |
|
|
/* OBSOLETE */
|
12 |
|
|
/* OBSOLETE This program is distributed in the hope that it will be useful, */
|
13 |
|
|
/* OBSOLETE but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
14 |
|
|
/* OBSOLETE MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
15 |
|
|
/* OBSOLETE GNU General Public License for more details. */
|
16 |
|
|
/* OBSOLETE */
|
17 |
|
|
/* OBSOLETE You should have received a copy of the GNU General Public License */
|
18 |
|
|
/* OBSOLETE along with this program; if not, write to the Free Software */
|
19 |
|
|
/* OBSOLETE Foundation, Inc., 59 Temple Place - Suite 330, */
|
20 |
|
|
/* OBSOLETE Boston, MA 02111-1307, USA. */ */
|
21 |
|
|
/* OBSOLETE */
|
22 |
|
|
/* OBSOLETE /* This file includes tm-a29k.h, but predefines REGISTER_NAMES and */
|
23 |
|
|
/* OBSOLETE related macros. The file supports a a29k running our flavor of */
|
24 |
|
|
/* OBSOLETE Unix on our Ultra3 PE Boards. */ */
|
25 |
|
|
/* OBSOLETE */
|
26 |
|
|
/* OBSOLETE /* Byte order is configurable, but this machine runs big-endian. */ */
|
27 |
|
|
/* OBSOLETE #define TARGET_BYTE_ORDER BIG_ENDIAN */
|
28 |
|
|
/* OBSOLETE */
|
29 |
|
|
/* OBSOLETE /* Initializer for an array of names of registers. */
|
30 |
|
|
/* OBSOLETE There should be NUM_REGS strings in this initializer. */
|
31 |
|
|
/* OBSOLETE */ */
|
32 |
|
|
/* OBSOLETE #define NUM_REGS (EXO_REGNUM + 1) */
|
33 |
|
|
/* OBSOLETE */
|
34 |
|
|
/* OBSOLETE #define REGISTER_NAMES { \ */
|
35 |
|
|
/* OBSOLETE "gr1", \ */
|
36 |
|
|
/* OBSOLETE "gr64", "gr65", "gr66", "gr67", "gr68", "gr69", "gr70", "gr71", "gr72", \ */
|
37 |
|
|
/* OBSOLETE "gr73", "gr74", "gr75", "gr76", "gr77", "gr78", "gr79", "gr80", "gr81", \ */
|
38 |
|
|
/* OBSOLETE "gr82", "gr83", "gr84", "gr85", "gr86", "gr87", "gr88", "gr89", "gr90", \ */
|
39 |
|
|
/* OBSOLETE "gr91", "gr92", "gr93", "gr94", "gr95", \ */
|
40 |
|
|
/* OBSOLETE "gr96", "gr97", "gr98", "gr99", "gr100", "gr101", "gr102", "gr103", "gr104", \ */
|
41 |
|
|
/* OBSOLETE "gr105", "gr106", "gr107", "gr108", "gr109", "gr110", "gr111", "gr112", \ */
|
42 |
|
|
/* OBSOLETE "gr113", "gr114", "gr115", "gr116", "gr117", "gr118", "gr119", "gr120", \ */
|
43 |
|
|
/* OBSOLETE "gr121", "gr122", "gr123", "gr124", "gr125", "gr126", "gr127", \ */
|
44 |
|
|
/* OBSOLETE "lr0", "lr1", "lr2", "lr3", "lr4", "lr5", "lr6", "lr7", "lr8", "lr9", \ */
|
45 |
|
|
/* OBSOLETE "lr10", "lr11", "lr12", "lr13", "lr14", "lr15", "lr16", "lr17", "lr18", \ */
|
46 |
|
|
/* OBSOLETE "lr19", "lr20", "lr21", "lr22", "lr23", "lr24", "lr25", "lr26", "lr27", \ */
|
47 |
|
|
/* OBSOLETE "lr28", "lr29", "lr30", "lr31", "lr32", "lr33", "lr34", "lr35", "lr36", \ */
|
48 |
|
|
/* OBSOLETE "lr37", "lr38", "lr39", "lr40", "lr41", "lr42", "lr43", "lr44", "lr45", \ */
|
49 |
|
|
/* OBSOLETE "lr46", "lr47", "lr48", "lr49", "lr50", "lr51", "lr52", "lr53", "lr54", \ */
|
50 |
|
|
/* OBSOLETE "lr55", "lr56", "lr57", "lr58", "lr59", "lr60", "lr61", "lr62", "lr63", \ */
|
51 |
|
|
/* OBSOLETE "lr64", "lr65", "lr66", "lr67", "lr68", "lr69", "lr70", "lr71", "lr72", \ */
|
52 |
|
|
/* OBSOLETE "lr73", "lr74", "lr75", "lr76", "lr77", "lr78", "lr79", "lr80", "lr81", \ */
|
53 |
|
|
/* OBSOLETE "lr82", "lr83", "lr84", "lr85", "lr86", "lr87", "lr88", "lr89", "lr90", \ */
|
54 |
|
|
/* OBSOLETE "lr91", "lr92", "lr93", "lr94", "lr95", "lr96", "lr97", "lr98", "lr99", \ */
|
55 |
|
|
/* OBSOLETE "lr100", "lr101", "lr102", "lr103", "lr104", "lr105", "lr106", "lr107", \ */
|
56 |
|
|
/* OBSOLETE "lr108", "lr109", "lr110", "lr111", "lr112", "lr113", "lr114", "lr115", \ */
|
57 |
|
|
/* OBSOLETE "lr116", "lr117", "lr118", "lr119", "lr120", "lr121", "lr122", "lr123", \ */
|
58 |
|
|
/* OBSOLETE "lr124", "lr125", "lr126", "lr127", \ */
|
59 |
|
|
/* OBSOLETE "vab", "ops", "cps", "cfg", "cha", "chd", "chc", "rbp", "tmc", "tmr", \ */
|
60 |
|
|
/* OBSOLETE "pc0", "pc1", "pc2", "mmu", "lru", \ */
|
61 |
|
|
/* OBSOLETE "ipc", "ipa", "ipb", "q", "alu", "bp", "fc", "cr", \ */
|
62 |
|
|
/* OBSOLETE "fpe", "int", "fps", "exo" } */
|
63 |
|
|
/* OBSOLETE */
|
64 |
|
|
/* OBSOLETE */
|
65 |
|
|
/* OBSOLETE #ifdef KERNEL_DEBUGGING */
|
66 |
|
|
/* OBSOLETE #define PADDR_U_REGNUM 22 /* gr86 */ */
|
67 |
|
|
/* OBSOLETE #define RETURN_REGNUM GR64_REGNUM */
|
68 |
|
|
/* OBSOLETE #else */
|
69 |
|
|
/* OBSOLETE #define RETURN_REGNUM GR96_REGNUM */
|
70 |
|
|
/* OBSOLETE #endif /* KERNEL_DEBUGGING */ */
|
71 |
|
|
/* OBSOLETE */
|
72 |
|
|
/* OBSOLETE */
|
73 |
|
|
/* OBSOLETE /* Should rename all GR96_REGNUM to RETURN_REGNUM */ */
|
74 |
|
|
/* OBSOLETE #define GR1_REGNUM (0) */
|
75 |
|
|
/* OBSOLETE #define GR64_REGNUM 1 */
|
76 |
|
|
/* OBSOLETE #define GR96_REGNUM (GR64_REGNUM + 32) */
|
77 |
|
|
/* OBSOLETE /* This needs to be the memory stack pointer, not the register stack pointer, */
|
78 |
|
|
/* OBSOLETE to make call_function work right. */ */
|
79 |
|
|
/* OBSOLETE #define SP_REGNUM MSP_REGNUM */
|
80 |
|
|
/* OBSOLETE */
|
81 |
|
|
/* OBSOLETE #define FP_REGNUM (LR0_REGNUM + 1) /* lr1 */ */
|
82 |
|
|
/* OBSOLETE /* Large Return Pointer */ */
|
83 |
|
|
/* OBSOLETE #define LRP_REGNUM (123 - 96 + RETURN_REGNUM) */
|
84 |
|
|
/* OBSOLETE /* Static link pointer */ */
|
85 |
|
|
/* OBSOLETE #define SLP_REGNUM (124 - 96 + RETURN_REGNUM) */
|
86 |
|
|
/* OBSOLETE /* Memory Stack Pointer. */ */
|
87 |
|
|
/* OBSOLETE #define MSP_REGNUM (125 - 96 + RETURN_REGNUM) */
|
88 |
|
|
/* OBSOLETE /* Register allocate bound. */ */
|
89 |
|
|
/* OBSOLETE #define RAB_REGNUM (126 - 96 + RETURN_REGNUM) */
|
90 |
|
|
/* OBSOLETE /* Register Free Bound. */ */
|
91 |
|
|
/* OBSOLETE #define RFB_REGNUM (127 - 96 + RETURN_REGNUM) */
|
92 |
|
|
/* OBSOLETE /* Register Stack Pointer. */ */
|
93 |
|
|
/* OBSOLETE #define RSP_REGNUM GR1_REGNUM */
|
94 |
|
|
/* OBSOLETE #define LR0_REGNUM ( 32 + GR96_REGNUM) */
|
95 |
|
|
/* OBSOLETE */
|
96 |
|
|
/* OBSOLETE /* Protected Special registers */ */
|
97 |
|
|
/* OBSOLETE #define VAB_REGNUM (LR0_REGNUM + 128) */
|
98 |
|
|
/* OBSOLETE #define OPS_REGNUM (VAB_REGNUM + 1) */
|
99 |
|
|
/* OBSOLETE #define CPS_REGNUM (VAB_REGNUM + 2) */
|
100 |
|
|
/* OBSOLETE #define CFG_REGNUM (VAB_REGNUM + 3) */
|
101 |
|
|
/* OBSOLETE #define CHA_REGNUM (VAB_REGNUM + 4) */
|
102 |
|
|
/* OBSOLETE #define CHD_REGNUM (VAB_REGNUM + 5) */
|
103 |
|
|
/* OBSOLETE #define CHC_REGNUM (VAB_REGNUM + 6) */
|
104 |
|
|
/* OBSOLETE #define RBP_REGNUM (VAB_REGNUM + 7) */
|
105 |
|
|
/* OBSOLETE #define TMC_REGNUM (VAB_REGNUM + 8) */
|
106 |
|
|
/* OBSOLETE #define TMR_REGNUM (VAB_REGNUM + 9) */
|
107 |
|
|
/* OBSOLETE #define NPC_REGNUM (VAB_REGNUM + 10) /* pc0 */ */
|
108 |
|
|
/* OBSOLETE #define PC_REGNUM (VAB_REGNUM + 11) /* pc1 */ */
|
109 |
|
|
/* OBSOLETE #define PC2_REGNUM (VAB_REGNUM + 12) /* pc2 */ */
|
110 |
|
|
/* OBSOLETE #define MMU_REGNUM (VAB_REGNUM + 13) */
|
111 |
|
|
/* OBSOLETE #define LRU_REGNUM (VAB_REGNUM + 14) */
|
112 |
|
|
/* OBSOLETE /* Register sequence gap */ */
|
113 |
|
|
/* OBSOLETE /* Unprotected Special registers */ */
|
114 |
|
|
/* OBSOLETE #define IPC_REGNUM (LRU_REGNUM + 1) */
|
115 |
|
|
/* OBSOLETE #define IPA_REGNUM (IPC_REGNUM + 1) */
|
116 |
|
|
/* OBSOLETE #define IPB_REGNUM (IPC_REGNUM + 2) */
|
117 |
|
|
/* OBSOLETE #define Q_REGNUM (IPC_REGNUM + 3) */
|
118 |
|
|
/* OBSOLETE #define ALU_REGNUM (IPC_REGNUM + 4) */
|
119 |
|
|
/* OBSOLETE #define PS_REGNUM ALU_REGNUM */
|
120 |
|
|
/* OBSOLETE #define BP_REGNUM (IPC_REGNUM + 5) */
|
121 |
|
|
/* OBSOLETE #define FC_REGNUM (IPC_REGNUM + 6) */
|
122 |
|
|
/* OBSOLETE #define CR_REGNUM (IPC_REGNUM + 7) */
|
123 |
|
|
/* OBSOLETE /* Register sequence gap */ */
|
124 |
|
|
/* OBSOLETE #define FPE_REGNUM (CR_REGNUM + 1) */
|
125 |
|
|
/* OBSOLETE #define INT_REGNUM (FPE_REGNUM + 1) */
|
126 |
|
|
/* OBSOLETE #define FPS_REGNUM (FPE_REGNUM + 2) */
|
127 |
|
|
/* OBSOLETE /* Register sequence gap */ */
|
128 |
|
|
/* OBSOLETE #define EXO_REGNUM (FPS_REGNUM + 1) */
|
129 |
|
|
/* OBSOLETE */
|
130 |
|
|
/* OBSOLETE /* Special register #x. */ */
|
131 |
|
|
/* OBSOLETE #define SR_REGNUM(x) \ */
|
132 |
|
|
/* OBSOLETE ((x) < 15 ? VAB_REGNUM + (x) \ */
|
133 |
|
|
/* OBSOLETE : (x) >= 128 && (x) < 136 ? IPC_REGNUM + (x-128) \ */
|
134 |
|
|
/* OBSOLETE : (x) >= 160 && (x) < 163 ? FPE_REGNUM + (x-160) \ */
|
135 |
|
|
/* OBSOLETE : (x) == 164 ? EXO_REGNUM \ */
|
136 |
|
|
/* OBSOLETE : (error ("Internal error in SR_REGNUM"), 0)) */
|
137 |
|
|
/* OBSOLETE */
|
138 |
|
|
/* OBSOLETE #ifndef KERNEL_DEBUGGING */
|
139 |
|
|
/* OBSOLETE /* */
|
140 |
|
|
/* OBSOLETE * This macro defines the register numbers (from REGISTER_NAMES) that */
|
141 |
|
|
/* OBSOLETE * are effectively unavailable to the user through ptrace(). It allows */
|
142 |
|
|
/* OBSOLETE * us to include the whole register set in REGISTER_NAMES (inorder to */
|
143 |
|
|
/* OBSOLETE * better support remote debugging). If it is used in */
|
144 |
|
|
/* OBSOLETE * fetch/store_inferior_registers() gdb will not complain about I/O errors */
|
145 |
|
|
/* OBSOLETE * on fetching these registers. If all registers in REGISTER_NAMES */
|
146 |
|
|
/* OBSOLETE * are available, then return false (0). */
|
147 |
|
|
/* OBSOLETE */ */
|
148 |
|
|
/* OBSOLETE #define CANNOT_STORE_REGISTER(regno) \ */
|
149 |
|
|
/* OBSOLETE (((regno)>=GR64_REGNUM && (regno)<GR64_REGNUM+32) || \ */
|
150 |
|
|
/* OBSOLETE ((regno)==VAB_REGNUM) || \ */
|
151 |
|
|
/* OBSOLETE ((regno)==OPS_REGNUM) || \ */
|
152 |
|
|
/* OBSOLETE ((regno)>=CFG_REGNUM && (regno)<=TMR_REGNUM) || \ */
|
153 |
|
|
/* OBSOLETE ((regno)==MMU_REGNUM) || \ */
|
154 |
|
|
/* OBSOLETE ((regno)==LRU_REGNUM) || \ */
|
155 |
|
|
/* OBSOLETE ((regno)>=ALU_REGNUM) || \ */
|
156 |
|
|
/* OBSOLETE ((regno)==CR_REGNUM) || \ */
|
157 |
|
|
/* OBSOLETE ((regno)==EXO_REGNUM)) */
|
158 |
|
|
/* OBSOLETE #define CANNOT_FETCH_REGISTER(regno) CANNOT_STORE_REGISTER(regno) */
|
159 |
|
|
/* OBSOLETE #endif /* KERNEL_DEBUGGING */ */
|
160 |
|
|
/* OBSOLETE */
|
161 |
|
|
/* OBSOLETE /* */
|
162 |
|
|
/* OBSOLETE * Converts an sdb register number to an internal gdb register number. */
|
163 |
|
|
/* OBSOLETE * Currently under gcc, gr96->0...gr128->31...lr0->32...lr127->159, or... */
|
164 |
|
|
/* OBSOLETE * gr64->0...gr95->31, lr0->32...lr127->159. */
|
165 |
|
|
/* OBSOLETE */ */
|
166 |
|
|
/* OBSOLETE #define SDB_REG_TO_REGNUM(value) (((value)<32) ? ((value)+RETURN_REGNUM) : \ */
|
167 |
|
|
/* OBSOLETE ((value)-32+LR0_REGNUM)) */
|
168 |
|
|
/* OBSOLETE */
|
169 |
|
|
/* OBSOLETE #ifdef KERNEL_DEBUGGING */
|
170 |
|
|
/* OBSOLETE /* ublock virtual address as defined in our sys/param.h */ */
|
171 |
|
|
/* OBSOLETE /* FIXME: Should get this from sys/param.h */ */
|
172 |
|
|
/* OBSOLETE #define UVADDR ((32*0x100000)-8192) */
|
173 |
|
|
/* OBSOLETE #endif */
|
174 |
|
|
/* OBSOLETE */
|
175 |
|
|
/* OBSOLETE /* */
|
176 |
|
|
/* OBSOLETE * Are we in sigtramp(), needed in infrun.c. Specific to ultra3, because */
|
177 |
|
|
/* OBSOLETE * we take off the leading '_'. */
|
178 |
|
|
/* OBSOLETE */ */
|
179 |
|
|
/* OBSOLETE #if !defined(KERNEL_DEBUGGING) */
|
180 |
|
|
/* OBSOLETE #ifdef SYM1 */
|
181 |
|
|
/* OBSOLETE #define IN_SIGTRAMP(pc, name) (name && STREQ ("sigtramp", name)) */
|
182 |
|
|
/* OBSOLETE #else */
|
183 |
|
|
/* OBSOLETE Need to define */
|
184 |
|
|
/* OBSOLETE IN_SIGTRAMP () for sym2. */
|
185 |
|
|
/* OBSOLETE #endif */
|
186 |
|
|
/* OBSOLETE #endif /* !KERNEL_DEBUGGING */ */
|
187 |
|
|
/* OBSOLETE */
|
188 |
|
|
/* OBSOLETE #include "a29k/tm-a29k.h" */
|
189 |
|
|
/* OBSOLETE */
|
190 |
|
|
/* OBSOLETE /**** The following are definitions that override those in tm-a29k.h ****/ */
|
191 |
|
|
/* OBSOLETE */
|
192 |
|
|
/* OBSOLETE /* This sequence of words is the instructions */
|
193 |
|
|
/* OBSOLETE mtsrim cr, 15 */
|
194 |
|
|
/* OBSOLETE loadm 0, 0, lr2, msp ; load first 16 words of arguments into registers */
|
195 |
|
|
/* OBSOLETE add msp, msp, 16 * 4 ; point to the remaining arguments */
|
196 |
|
|
/* OBSOLETE CONST_INSN: */
|
197 |
|
|
/* OBSOLETE const gr96,inf */
|
198 |
|
|
/* OBSOLETE consth gr96,inf */
|
199 |
|
|
/* OBSOLETE calli lr0, gr96 */
|
200 |
|
|
/* OBSOLETE aseq 0x40,gr1,gr1 ; nop */
|
201 |
|
|
/* OBSOLETE asneq 0x50,gr1,gr1 ; breakpoint */
|
202 |
|
|
/* OBSOLETE When KERNEL_DEBUGGIN is defined, msp -> gr93, gr96 -> gr64, */
|
203 |
|
|
/* OBSOLETE 7d -> 5d, 60 -> 40 */
|
204 |
|
|
/* OBSOLETE */ */
|
205 |
|
|
/* OBSOLETE */
|
206 |
|
|
/* OBSOLETE /* Position of the "const" instruction within CALL_DUMMY in bytes. */ */
|
207 |
|
|
/* OBSOLETE #undef CALL_DUMMY */
|
208 |
|
|
/* OBSOLETE #if TARGET_BYTE_ORDER == HOST_BYTE_ORDER */
|
209 |
|
|
/* OBSOLETE #ifdef KERNEL_DEBUGGING /* gr96 -> gr64 */ */
|
210 |
|
|
/* OBSOLETE #define CALL_DUMMY {0x0400870f, 0x3600825d, 0x155d5d40, 0x03ff40ff, \ */
|
211 |
|
|
/* OBSOLETE 0x02ff40ff, 0xc8008040, 0x70400101, 0x72500101} */
|
212 |
|
|
/* OBSOLETE #else */
|
213 |
|
|
/* OBSOLETE #define CALL_DUMMY {0x0400870f, 0x3600827d, 0x157d7d40, 0x03ff60ff, \ */
|
214 |
|
|
/* OBSOLETE 0x02ff60ff, 0xc8008060, 0x70400101, 0x72500101} */
|
215 |
|
|
/* OBSOLETE #endif /* KERNEL_DEBUGGING */ */
|
216 |
|
|
/* OBSOLETE #else /* Byte order differs. */ */
|
217 |
|
|
/* OBSOLETE you lose */
|
218 |
|
|
/* OBSOLETE #endif /* Byte order differs. */ */
|
219 |
|
|
/* OBSOLETE */
|
220 |
|
|
/* OBSOLETE #if !defined(KERNEL_DEBUGGING) */
|
221 |
|
|
/* OBSOLETE #ifdef SYM1 */
|
222 |
|
|
/* OBSOLETE #undef DECR_PC_AFTER_BREAK */
|
223 |
|
|
/* OBSOLETE #define DECR_PC_AFTER_BREAK 0 /* Sym1 kernel does the decrement */ */
|
224 |
|
|
/* OBSOLETE #else */
|
225 |
|
|
/* OBSOLETE ->"ULTRA3 running other than sym1 OS" !; */
|
226 |
|
|
/* OBSOLETE #endif */
|
227 |
|
|
/* OBSOLETE #endif /* !KERNEL_DEBUGGING */ */
|