1 |
1181 |
sfurman |
// OBSOLETE /* Misc. support for CPU family fr30bf.
|
2 |
|
|
// OBSOLETE
|
3 |
|
|
// OBSOLETE THIS FILE IS MACHINE GENERATED WITH CGEN.
|
4 |
|
|
// OBSOLETE
|
5 |
|
|
// OBSOLETE Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
6 |
|
|
// OBSOLETE
|
7 |
|
|
// OBSOLETE This file is part of the GNU simulators.
|
8 |
|
|
// OBSOLETE
|
9 |
|
|
// OBSOLETE This program is free software; you can redistribute it and/or modify
|
10 |
|
|
// OBSOLETE it under the terms of the GNU General Public License as published by
|
11 |
|
|
// OBSOLETE the Free Software Foundation; either version 2, or (at your option)
|
12 |
|
|
// OBSOLETE any later version.
|
13 |
|
|
// OBSOLETE
|
14 |
|
|
// OBSOLETE This program is distributed in the hope that it will be useful,
|
15 |
|
|
// OBSOLETE but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
|
|
// OBSOLETE MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
|
|
// OBSOLETE GNU General Public License for more details.
|
18 |
|
|
// OBSOLETE
|
19 |
|
|
// OBSOLETE You should have received a copy of the GNU General Public License along
|
20 |
|
|
// OBSOLETE with this program; if not, write to the Free Software Foundation, Inc.,
|
21 |
|
|
// OBSOLETE 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
22 |
|
|
// OBSOLETE
|
23 |
|
|
// OBSOLETE */
|
24 |
|
|
// OBSOLETE
|
25 |
|
|
// OBSOLETE #define WANT_CPU fr30bf
|
26 |
|
|
// OBSOLETE #define WANT_CPU_FR30BF
|
27 |
|
|
// OBSOLETE
|
28 |
|
|
// OBSOLETE #include "sim-main.h"
|
29 |
|
|
// OBSOLETE #include "cgen-ops.h"
|
30 |
|
|
// OBSOLETE
|
31 |
|
|
// OBSOLETE /* Get the value of h-pc. */
|
32 |
|
|
// OBSOLETE
|
33 |
|
|
// OBSOLETE USI
|
34 |
|
|
// OBSOLETE fr30bf_h_pc_get (SIM_CPU *current_cpu)
|
35 |
|
|
// OBSOLETE {
|
36 |
|
|
// OBSOLETE return CPU (h_pc);
|
37 |
|
|
// OBSOLETE }
|
38 |
|
|
// OBSOLETE
|
39 |
|
|
// OBSOLETE /* Set a value for h-pc. */
|
40 |
|
|
// OBSOLETE
|
41 |
|
|
// OBSOLETE void
|
42 |
|
|
// OBSOLETE fr30bf_h_pc_set (SIM_CPU *current_cpu, USI newval)
|
43 |
|
|
// OBSOLETE {
|
44 |
|
|
// OBSOLETE CPU (h_pc) = newval;
|
45 |
|
|
// OBSOLETE }
|
46 |
|
|
// OBSOLETE
|
47 |
|
|
// OBSOLETE /* Get the value of h-gr. */
|
48 |
|
|
// OBSOLETE
|
49 |
|
|
// OBSOLETE SI
|
50 |
|
|
// OBSOLETE fr30bf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
|
51 |
|
|
// OBSOLETE {
|
52 |
|
|
// OBSOLETE return CPU (h_gr[regno]);
|
53 |
|
|
// OBSOLETE }
|
54 |
|
|
// OBSOLETE
|
55 |
|
|
// OBSOLETE /* Set a value for h-gr. */
|
56 |
|
|
// OBSOLETE
|
57 |
|
|
// OBSOLETE void
|
58 |
|
|
// OBSOLETE fr30bf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
|
59 |
|
|
// OBSOLETE {
|
60 |
|
|
// OBSOLETE CPU (h_gr[regno]) = newval;
|
61 |
|
|
// OBSOLETE }
|
62 |
|
|
// OBSOLETE
|
63 |
|
|
// OBSOLETE /* Get the value of h-cr. */
|
64 |
|
|
// OBSOLETE
|
65 |
|
|
// OBSOLETE SI
|
66 |
|
|
// OBSOLETE fr30bf_h_cr_get (SIM_CPU *current_cpu, UINT regno)
|
67 |
|
|
// OBSOLETE {
|
68 |
|
|
// OBSOLETE return CPU (h_cr[regno]);
|
69 |
|
|
// OBSOLETE }
|
70 |
|
|
// OBSOLETE
|
71 |
|
|
// OBSOLETE /* Set a value for h-cr. */
|
72 |
|
|
// OBSOLETE
|
73 |
|
|
// OBSOLETE void
|
74 |
|
|
// OBSOLETE fr30bf_h_cr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
|
75 |
|
|
// OBSOLETE {
|
76 |
|
|
// OBSOLETE CPU (h_cr[regno]) = newval;
|
77 |
|
|
// OBSOLETE }
|
78 |
|
|
// OBSOLETE
|
79 |
|
|
// OBSOLETE /* Get the value of h-dr. */
|
80 |
|
|
// OBSOLETE
|
81 |
|
|
// OBSOLETE SI
|
82 |
|
|
// OBSOLETE fr30bf_h_dr_get (SIM_CPU *current_cpu, UINT regno)
|
83 |
|
|
// OBSOLETE {
|
84 |
|
|
// OBSOLETE return GET_H_DR (regno);
|
85 |
|
|
// OBSOLETE }
|
86 |
|
|
// OBSOLETE
|
87 |
|
|
// OBSOLETE /* Set a value for h-dr. */
|
88 |
|
|
// OBSOLETE
|
89 |
|
|
// OBSOLETE void
|
90 |
|
|
// OBSOLETE fr30bf_h_dr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
|
91 |
|
|
// OBSOLETE {
|
92 |
|
|
// OBSOLETE SET_H_DR (regno, newval);
|
93 |
|
|
// OBSOLETE }
|
94 |
|
|
// OBSOLETE
|
95 |
|
|
// OBSOLETE /* Get the value of h-ps. */
|
96 |
|
|
// OBSOLETE
|
97 |
|
|
// OBSOLETE USI
|
98 |
|
|
// OBSOLETE fr30bf_h_ps_get (SIM_CPU *current_cpu)
|
99 |
|
|
// OBSOLETE {
|
100 |
|
|
// OBSOLETE return GET_H_PS ();
|
101 |
|
|
// OBSOLETE }
|
102 |
|
|
// OBSOLETE
|
103 |
|
|
// OBSOLETE /* Set a value for h-ps. */
|
104 |
|
|
// OBSOLETE
|
105 |
|
|
// OBSOLETE void
|
106 |
|
|
// OBSOLETE fr30bf_h_ps_set (SIM_CPU *current_cpu, USI newval)
|
107 |
|
|
// OBSOLETE {
|
108 |
|
|
// OBSOLETE SET_H_PS (newval);
|
109 |
|
|
// OBSOLETE }
|
110 |
|
|
// OBSOLETE
|
111 |
|
|
// OBSOLETE /* Get the value of h-r13. */
|
112 |
|
|
// OBSOLETE
|
113 |
|
|
// OBSOLETE SI
|
114 |
|
|
// OBSOLETE fr30bf_h_r13_get (SIM_CPU *current_cpu)
|
115 |
|
|
// OBSOLETE {
|
116 |
|
|
// OBSOLETE return CPU (h_r13);
|
117 |
|
|
// OBSOLETE }
|
118 |
|
|
// OBSOLETE
|
119 |
|
|
// OBSOLETE /* Set a value for h-r13. */
|
120 |
|
|
// OBSOLETE
|
121 |
|
|
// OBSOLETE void
|
122 |
|
|
// OBSOLETE fr30bf_h_r13_set (SIM_CPU *current_cpu, SI newval)
|
123 |
|
|
// OBSOLETE {
|
124 |
|
|
// OBSOLETE CPU (h_r13) = newval;
|
125 |
|
|
// OBSOLETE }
|
126 |
|
|
// OBSOLETE
|
127 |
|
|
// OBSOLETE /* Get the value of h-r14. */
|
128 |
|
|
// OBSOLETE
|
129 |
|
|
// OBSOLETE SI
|
130 |
|
|
// OBSOLETE fr30bf_h_r14_get (SIM_CPU *current_cpu)
|
131 |
|
|
// OBSOLETE {
|
132 |
|
|
// OBSOLETE return CPU (h_r14);
|
133 |
|
|
// OBSOLETE }
|
134 |
|
|
// OBSOLETE
|
135 |
|
|
// OBSOLETE /* Set a value for h-r14. */
|
136 |
|
|
// OBSOLETE
|
137 |
|
|
// OBSOLETE void
|
138 |
|
|
// OBSOLETE fr30bf_h_r14_set (SIM_CPU *current_cpu, SI newval)
|
139 |
|
|
// OBSOLETE {
|
140 |
|
|
// OBSOLETE CPU (h_r14) = newval;
|
141 |
|
|
// OBSOLETE }
|
142 |
|
|
// OBSOLETE
|
143 |
|
|
// OBSOLETE /* Get the value of h-r15. */
|
144 |
|
|
// OBSOLETE
|
145 |
|
|
// OBSOLETE SI
|
146 |
|
|
// OBSOLETE fr30bf_h_r15_get (SIM_CPU *current_cpu)
|
147 |
|
|
// OBSOLETE {
|
148 |
|
|
// OBSOLETE return CPU (h_r15);
|
149 |
|
|
// OBSOLETE }
|
150 |
|
|
// OBSOLETE
|
151 |
|
|
// OBSOLETE /* Set a value for h-r15. */
|
152 |
|
|
// OBSOLETE
|
153 |
|
|
// OBSOLETE void
|
154 |
|
|
// OBSOLETE fr30bf_h_r15_set (SIM_CPU *current_cpu, SI newval)
|
155 |
|
|
// OBSOLETE {
|
156 |
|
|
// OBSOLETE CPU (h_r15) = newval;
|
157 |
|
|
// OBSOLETE }
|
158 |
|
|
// OBSOLETE
|
159 |
|
|
// OBSOLETE /* Get the value of h-nbit. */
|
160 |
|
|
// OBSOLETE
|
161 |
|
|
// OBSOLETE BI
|
162 |
|
|
// OBSOLETE fr30bf_h_nbit_get (SIM_CPU *current_cpu)
|
163 |
|
|
// OBSOLETE {
|
164 |
|
|
// OBSOLETE return CPU (h_nbit);
|
165 |
|
|
// OBSOLETE }
|
166 |
|
|
// OBSOLETE
|
167 |
|
|
// OBSOLETE /* Set a value for h-nbit. */
|
168 |
|
|
// OBSOLETE
|
169 |
|
|
// OBSOLETE void
|
170 |
|
|
// OBSOLETE fr30bf_h_nbit_set (SIM_CPU *current_cpu, BI newval)
|
171 |
|
|
// OBSOLETE {
|
172 |
|
|
// OBSOLETE CPU (h_nbit) = newval;
|
173 |
|
|
// OBSOLETE }
|
174 |
|
|
// OBSOLETE
|
175 |
|
|
// OBSOLETE /* Get the value of h-zbit. */
|
176 |
|
|
// OBSOLETE
|
177 |
|
|
// OBSOLETE BI
|
178 |
|
|
// OBSOLETE fr30bf_h_zbit_get (SIM_CPU *current_cpu)
|
179 |
|
|
// OBSOLETE {
|
180 |
|
|
// OBSOLETE return CPU (h_zbit);
|
181 |
|
|
// OBSOLETE }
|
182 |
|
|
// OBSOLETE
|
183 |
|
|
// OBSOLETE /* Set a value for h-zbit. */
|
184 |
|
|
// OBSOLETE
|
185 |
|
|
// OBSOLETE void
|
186 |
|
|
// OBSOLETE fr30bf_h_zbit_set (SIM_CPU *current_cpu, BI newval)
|
187 |
|
|
// OBSOLETE {
|
188 |
|
|
// OBSOLETE CPU (h_zbit) = newval;
|
189 |
|
|
// OBSOLETE }
|
190 |
|
|
// OBSOLETE
|
191 |
|
|
// OBSOLETE /* Get the value of h-vbit. */
|
192 |
|
|
// OBSOLETE
|
193 |
|
|
// OBSOLETE BI
|
194 |
|
|
// OBSOLETE fr30bf_h_vbit_get (SIM_CPU *current_cpu)
|
195 |
|
|
// OBSOLETE {
|
196 |
|
|
// OBSOLETE return CPU (h_vbit);
|
197 |
|
|
// OBSOLETE }
|
198 |
|
|
// OBSOLETE
|
199 |
|
|
// OBSOLETE /* Set a value for h-vbit. */
|
200 |
|
|
// OBSOLETE
|
201 |
|
|
// OBSOLETE void
|
202 |
|
|
// OBSOLETE fr30bf_h_vbit_set (SIM_CPU *current_cpu, BI newval)
|
203 |
|
|
// OBSOLETE {
|
204 |
|
|
// OBSOLETE CPU (h_vbit) = newval;
|
205 |
|
|
// OBSOLETE }
|
206 |
|
|
// OBSOLETE
|
207 |
|
|
// OBSOLETE /* Get the value of h-cbit. */
|
208 |
|
|
// OBSOLETE
|
209 |
|
|
// OBSOLETE BI
|
210 |
|
|
// OBSOLETE fr30bf_h_cbit_get (SIM_CPU *current_cpu)
|
211 |
|
|
// OBSOLETE {
|
212 |
|
|
// OBSOLETE return CPU (h_cbit);
|
213 |
|
|
// OBSOLETE }
|
214 |
|
|
// OBSOLETE
|
215 |
|
|
// OBSOLETE /* Set a value for h-cbit. */
|
216 |
|
|
// OBSOLETE
|
217 |
|
|
// OBSOLETE void
|
218 |
|
|
// OBSOLETE fr30bf_h_cbit_set (SIM_CPU *current_cpu, BI newval)
|
219 |
|
|
// OBSOLETE {
|
220 |
|
|
// OBSOLETE CPU (h_cbit) = newval;
|
221 |
|
|
// OBSOLETE }
|
222 |
|
|
// OBSOLETE
|
223 |
|
|
// OBSOLETE /* Get the value of h-ibit. */
|
224 |
|
|
// OBSOLETE
|
225 |
|
|
// OBSOLETE BI
|
226 |
|
|
// OBSOLETE fr30bf_h_ibit_get (SIM_CPU *current_cpu)
|
227 |
|
|
// OBSOLETE {
|
228 |
|
|
// OBSOLETE return CPU (h_ibit);
|
229 |
|
|
// OBSOLETE }
|
230 |
|
|
// OBSOLETE
|
231 |
|
|
// OBSOLETE /* Set a value for h-ibit. */
|
232 |
|
|
// OBSOLETE
|
233 |
|
|
// OBSOLETE void
|
234 |
|
|
// OBSOLETE fr30bf_h_ibit_set (SIM_CPU *current_cpu, BI newval)
|
235 |
|
|
// OBSOLETE {
|
236 |
|
|
// OBSOLETE CPU (h_ibit) = newval;
|
237 |
|
|
// OBSOLETE }
|
238 |
|
|
// OBSOLETE
|
239 |
|
|
// OBSOLETE /* Get the value of h-sbit. */
|
240 |
|
|
// OBSOLETE
|
241 |
|
|
// OBSOLETE BI
|
242 |
|
|
// OBSOLETE fr30bf_h_sbit_get (SIM_CPU *current_cpu)
|
243 |
|
|
// OBSOLETE {
|
244 |
|
|
// OBSOLETE return GET_H_SBIT ();
|
245 |
|
|
// OBSOLETE }
|
246 |
|
|
// OBSOLETE
|
247 |
|
|
// OBSOLETE /* Set a value for h-sbit. */
|
248 |
|
|
// OBSOLETE
|
249 |
|
|
// OBSOLETE void
|
250 |
|
|
// OBSOLETE fr30bf_h_sbit_set (SIM_CPU *current_cpu, BI newval)
|
251 |
|
|
// OBSOLETE {
|
252 |
|
|
// OBSOLETE SET_H_SBIT (newval);
|
253 |
|
|
// OBSOLETE }
|
254 |
|
|
// OBSOLETE
|
255 |
|
|
// OBSOLETE /* Get the value of h-tbit. */
|
256 |
|
|
// OBSOLETE
|
257 |
|
|
// OBSOLETE BI
|
258 |
|
|
// OBSOLETE fr30bf_h_tbit_get (SIM_CPU *current_cpu)
|
259 |
|
|
// OBSOLETE {
|
260 |
|
|
// OBSOLETE return CPU (h_tbit);
|
261 |
|
|
// OBSOLETE }
|
262 |
|
|
// OBSOLETE
|
263 |
|
|
// OBSOLETE /* Set a value for h-tbit. */
|
264 |
|
|
// OBSOLETE
|
265 |
|
|
// OBSOLETE void
|
266 |
|
|
// OBSOLETE fr30bf_h_tbit_set (SIM_CPU *current_cpu, BI newval)
|
267 |
|
|
// OBSOLETE {
|
268 |
|
|
// OBSOLETE CPU (h_tbit) = newval;
|
269 |
|
|
// OBSOLETE }
|
270 |
|
|
// OBSOLETE
|
271 |
|
|
// OBSOLETE /* Get the value of h-d0bit. */
|
272 |
|
|
// OBSOLETE
|
273 |
|
|
// OBSOLETE BI
|
274 |
|
|
// OBSOLETE fr30bf_h_d0bit_get (SIM_CPU *current_cpu)
|
275 |
|
|
// OBSOLETE {
|
276 |
|
|
// OBSOLETE return CPU (h_d0bit);
|
277 |
|
|
// OBSOLETE }
|
278 |
|
|
// OBSOLETE
|
279 |
|
|
// OBSOLETE /* Set a value for h-d0bit. */
|
280 |
|
|
// OBSOLETE
|
281 |
|
|
// OBSOLETE void
|
282 |
|
|
// OBSOLETE fr30bf_h_d0bit_set (SIM_CPU *current_cpu, BI newval)
|
283 |
|
|
// OBSOLETE {
|
284 |
|
|
// OBSOLETE CPU (h_d0bit) = newval;
|
285 |
|
|
// OBSOLETE }
|
286 |
|
|
// OBSOLETE
|
287 |
|
|
// OBSOLETE /* Get the value of h-d1bit. */
|
288 |
|
|
// OBSOLETE
|
289 |
|
|
// OBSOLETE BI
|
290 |
|
|
// OBSOLETE fr30bf_h_d1bit_get (SIM_CPU *current_cpu)
|
291 |
|
|
// OBSOLETE {
|
292 |
|
|
// OBSOLETE return CPU (h_d1bit);
|
293 |
|
|
// OBSOLETE }
|
294 |
|
|
// OBSOLETE
|
295 |
|
|
// OBSOLETE /* Set a value for h-d1bit. */
|
296 |
|
|
// OBSOLETE
|
297 |
|
|
// OBSOLETE void
|
298 |
|
|
// OBSOLETE fr30bf_h_d1bit_set (SIM_CPU *current_cpu, BI newval)
|
299 |
|
|
// OBSOLETE {
|
300 |
|
|
// OBSOLETE CPU (h_d1bit) = newval;
|
301 |
|
|
// OBSOLETE }
|
302 |
|
|
// OBSOLETE
|
303 |
|
|
// OBSOLETE /* Get the value of h-ccr. */
|
304 |
|
|
// OBSOLETE
|
305 |
|
|
// OBSOLETE UQI
|
306 |
|
|
// OBSOLETE fr30bf_h_ccr_get (SIM_CPU *current_cpu)
|
307 |
|
|
// OBSOLETE {
|
308 |
|
|
// OBSOLETE return GET_H_CCR ();
|
309 |
|
|
// OBSOLETE }
|
310 |
|
|
// OBSOLETE
|
311 |
|
|
// OBSOLETE /* Set a value for h-ccr. */
|
312 |
|
|
// OBSOLETE
|
313 |
|
|
// OBSOLETE void
|
314 |
|
|
// OBSOLETE fr30bf_h_ccr_set (SIM_CPU *current_cpu, UQI newval)
|
315 |
|
|
// OBSOLETE {
|
316 |
|
|
// OBSOLETE SET_H_CCR (newval);
|
317 |
|
|
// OBSOLETE }
|
318 |
|
|
// OBSOLETE
|
319 |
|
|
// OBSOLETE /* Get the value of h-scr. */
|
320 |
|
|
// OBSOLETE
|
321 |
|
|
// OBSOLETE UQI
|
322 |
|
|
// OBSOLETE fr30bf_h_scr_get (SIM_CPU *current_cpu)
|
323 |
|
|
// OBSOLETE {
|
324 |
|
|
// OBSOLETE return GET_H_SCR ();
|
325 |
|
|
// OBSOLETE }
|
326 |
|
|
// OBSOLETE
|
327 |
|
|
// OBSOLETE /* Set a value for h-scr. */
|
328 |
|
|
// OBSOLETE
|
329 |
|
|
// OBSOLETE void
|
330 |
|
|
// OBSOLETE fr30bf_h_scr_set (SIM_CPU *current_cpu, UQI newval)
|
331 |
|
|
// OBSOLETE {
|
332 |
|
|
// OBSOLETE SET_H_SCR (newval);
|
333 |
|
|
// OBSOLETE }
|
334 |
|
|
// OBSOLETE
|
335 |
|
|
// OBSOLETE /* Get the value of h-ilm. */
|
336 |
|
|
// OBSOLETE
|
337 |
|
|
// OBSOLETE UQI
|
338 |
|
|
// OBSOLETE fr30bf_h_ilm_get (SIM_CPU *current_cpu)
|
339 |
|
|
// OBSOLETE {
|
340 |
|
|
// OBSOLETE return GET_H_ILM ();
|
341 |
|
|
// OBSOLETE }
|
342 |
|
|
// OBSOLETE
|
343 |
|
|
// OBSOLETE /* Set a value for h-ilm. */
|
344 |
|
|
// OBSOLETE
|
345 |
|
|
// OBSOLETE void
|
346 |
|
|
// OBSOLETE fr30bf_h_ilm_set (SIM_CPU *current_cpu, UQI newval)
|
347 |
|
|
// OBSOLETE {
|
348 |
|
|
// OBSOLETE SET_H_ILM (newval);
|
349 |
|
|
// OBSOLETE }
|
350 |
|
|
// OBSOLETE
|
351 |
|
|
// OBSOLETE /* Record trace results for INSN. */
|
352 |
|
|
// OBSOLETE
|
353 |
|
|
// OBSOLETE void
|
354 |
|
|
// OBSOLETE fr30bf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
|
355 |
|
|
// OBSOLETE int *indices, TRACE_RECORD *tr)
|
356 |
|
|
// OBSOLETE {
|
357 |
|
|
// OBSOLETE }
|