2003-11-12 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / sim / sh64 / cpu.c
CommitLineData
cbb38b47
BE
1/* Misc. support for CPU family sh64.
2
3THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6
7This file is part of the GNU Simulators.
8
9This program is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2, or (at your option)
12any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License along
20with this program; if not, write to the Free Software Foundation, Inc.,
2159 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23*/
24
25#define WANT_CPU sh64
26#define WANT_CPU_SH64
27
28#include "sim-main.h"
29#include "cgen-ops.h"
30
31/* Get the value of h-pc. */
32
33UDI
34sh64_h_pc_get (SIM_CPU *current_cpu)
35{
36 return GET_H_PC ();
37}
38
39/* Set a value for h-pc. */
40
41void
42sh64_h_pc_set (SIM_CPU *current_cpu, UDI newval)
43{
44 SET_H_PC (newval);
45}
46
47/* Get the value of h-gr. */
48
49DI
50sh64_h_gr_get (SIM_CPU *current_cpu, UINT regno)
51{
52 return GET_H_GR (regno);
53}
54
55/* Set a value for h-gr. */
56
57void
58sh64_h_gr_set (SIM_CPU *current_cpu, UINT regno, DI newval)
59{
60 SET_H_GR (regno, newval);
61}
62
63/* Get the value of h-grc. */
64
65SI
66sh64_h_grc_get (SIM_CPU *current_cpu, UINT regno)
67{
68 return GET_H_GRC (regno);
69}
70
71/* Set a value for h-grc. */
72
73void
74sh64_h_grc_set (SIM_CPU *current_cpu, UINT regno, SI newval)
75{
76 SET_H_GRC (regno, newval);
77}
78
79/* Get the value of h-cr. */
80
81DI
82sh64_h_cr_get (SIM_CPU *current_cpu, UINT regno)
83{
84 return GET_H_CR (regno);
85}
86
87/* Set a value for h-cr. */
88
89void
90sh64_h_cr_set (SIM_CPU *current_cpu, UINT regno, DI newval)
91{
92 SET_H_CR (regno, newval);
93}
94
95/* Get the value of h-sr. */
96
97SI
98sh64_h_sr_get (SIM_CPU *current_cpu)
99{
100 return CPU (h_sr);
101}
102
103/* Set a value for h-sr. */
104
105void
106sh64_h_sr_set (SIM_CPU *current_cpu, SI newval)
107{
108 CPU (h_sr) = newval;
109}
110
111/* Get the value of h-fpscr. */
112
113SI
114sh64_h_fpscr_get (SIM_CPU *current_cpu)
115{
116 return CPU (h_fpscr);
117}
118
119/* Set a value for h-fpscr. */
120
121void
122sh64_h_fpscr_set (SIM_CPU *current_cpu, SI newval)
123{
124 CPU (h_fpscr) = newval;
125}
126
127/* Get the value of h-frbit. */
128
129BI
130sh64_h_frbit_get (SIM_CPU *current_cpu)
131{
132 return GET_H_FRBIT ();
133}
134
135/* Set a value for h-frbit. */
136
137void
138sh64_h_frbit_set (SIM_CPU *current_cpu, BI newval)
139{
140 SET_H_FRBIT (newval);
141}
142
143/* Get the value of h-szbit. */
144
145BI
146sh64_h_szbit_get (SIM_CPU *current_cpu)
147{
148 return GET_H_SZBIT ();
149}
150
151/* Set a value for h-szbit. */
152
153void
154sh64_h_szbit_set (SIM_CPU *current_cpu, BI newval)
155{
156 SET_H_SZBIT (newval);
157}
158
159/* Get the value of h-prbit. */
160
161BI
162sh64_h_prbit_get (SIM_CPU *current_cpu)
163{
164 return GET_H_PRBIT ();
165}
166
167/* Set a value for h-prbit. */
168
169void
170sh64_h_prbit_set (SIM_CPU *current_cpu, BI newval)
171{
172 SET_H_PRBIT (newval);
173}
174
175/* Get the value of h-sbit. */
176
177BI
178sh64_h_sbit_get (SIM_CPU *current_cpu)
179{
180 return GET_H_SBIT ();
181}
182
183/* Set a value for h-sbit. */
184
185void
186sh64_h_sbit_set (SIM_CPU *current_cpu, BI newval)
187{
188 SET_H_SBIT (newval);
189}
190
191/* Get the value of h-mbit. */
192
193BI
194sh64_h_mbit_get (SIM_CPU *current_cpu)
195{
196 return GET_H_MBIT ();
197}
198
199/* Set a value for h-mbit. */
200
201void
202sh64_h_mbit_set (SIM_CPU *current_cpu, BI newval)
203{
204 SET_H_MBIT (newval);
205}
206
207/* Get the value of h-qbit. */
208
209BI
210sh64_h_qbit_get (SIM_CPU *current_cpu)
211{
212 return GET_H_QBIT ();
213}
214
215/* Set a value for h-qbit. */
216
217void
218sh64_h_qbit_set (SIM_CPU *current_cpu, BI newval)
219{
220 SET_H_QBIT (newval);
221}
222
223/* Get the value of h-fr. */
224
225SF
226sh64_h_fr_get (SIM_CPU *current_cpu, UINT regno)
227{
228 return CPU (h_fr[regno]);
229}
230
231/* Set a value for h-fr. */
232
233void
234sh64_h_fr_set (SIM_CPU *current_cpu, UINT regno, SF newval)
235{
236 CPU (h_fr[regno]) = newval;
237}
238
239/* Get the value of h-fp. */
240
241DF
242sh64_h_fp_get (SIM_CPU *current_cpu, UINT regno)
243{
244 return CPU (h_fp[regno]);
245}
246
247/* Set a value for h-fp. */
248
249void
250sh64_h_fp_set (SIM_CPU *current_cpu, UINT regno, DF newval)
251{
252 CPU (h_fp[regno]) = newval;
253}
254
255/* Get the value of h-fv. */
256
257SF
258sh64_h_fv_get (SIM_CPU *current_cpu, UINT regno)
259{
260 return GET_H_FV (regno);
261}
262
263/* Set a value for h-fv. */
264
265void
266sh64_h_fv_set (SIM_CPU *current_cpu, UINT regno, SF newval)
267{
268 SET_H_FV (regno, newval);
269}
270
271/* Get the value of h-fmtx. */
272
273SF
274sh64_h_fmtx_get (SIM_CPU *current_cpu, UINT regno)
275{
276 return GET_H_FMTX (regno);
277}
278
279/* Set a value for h-fmtx. */
280
281void
282sh64_h_fmtx_set (SIM_CPU *current_cpu, UINT regno, SF newval)
283{
284 SET_H_FMTX (regno, newval);
285}
286
287/* Get the value of h-dr. */
288
289DF
290sh64_h_dr_get (SIM_CPU *current_cpu, UINT regno)
291{
292 return GET_H_DR (regno);
293}
294
295/* Set a value for h-dr. */
296
297void
298sh64_h_dr_set (SIM_CPU *current_cpu, UINT regno, DF newval)
299{
300 SET_H_DR (regno, newval);
301}
302
303/* Get the value of h-tr. */
304
305DI
306sh64_h_tr_get (SIM_CPU *current_cpu, UINT regno)
307{
308 return CPU (h_tr[regno]);
309}
310
311/* Set a value for h-tr. */
312
313void
314sh64_h_tr_set (SIM_CPU *current_cpu, UINT regno, DI newval)
315{
316 CPU (h_tr[regno]) = newval;
317}
318
319/* Get the value of h-endian. */
320
321BI
322sh64_h_endian_get (SIM_CPU *current_cpu)
323{
324 return GET_H_ENDIAN ();
325}
326
327/* Set a value for h-endian. */
328
329void
330sh64_h_endian_set (SIM_CPU *current_cpu, BI newval)
331{
332 SET_H_ENDIAN (newval);
333}
334
335/* Get the value of h-ism. */
336
337BI
338sh64_h_ism_get (SIM_CPU *current_cpu)
339{
340 return GET_H_ISM ();
341}
342
343/* Set a value for h-ism. */
344
345void
346sh64_h_ism_set (SIM_CPU *current_cpu, BI newval)
347{
348 SET_H_ISM (newval);
349}
350
351/* Get the value of h-frc. */
352
353SF
354sh64_h_frc_get (SIM_CPU *current_cpu, UINT regno)
355{
356 return GET_H_FRC (regno);
357}
358
359/* Set a value for h-frc. */
360
361void
362sh64_h_frc_set (SIM_CPU *current_cpu, UINT regno, SF newval)
363{
364 SET_H_FRC (regno, newval);
365}
366
367/* Get the value of h-drc. */
368
369DF
370sh64_h_drc_get (SIM_CPU *current_cpu, UINT regno)
371{
372 return GET_H_DRC (regno);
373}
374
375/* Set a value for h-drc. */
376
377void
378sh64_h_drc_set (SIM_CPU *current_cpu, UINT regno, DF newval)
379{
380 SET_H_DRC (regno, newval);
381}
382
383/* Get the value of h-xf. */
384
385SF
386sh64_h_xf_get (SIM_CPU *current_cpu, UINT regno)
387{
388 return GET_H_XF (regno);
389}
390
391/* Set a value for h-xf. */
392
393void
394sh64_h_xf_set (SIM_CPU *current_cpu, UINT regno, SF newval)
395{
396 SET_H_XF (regno, newval);
397}
398
399/* Get the value of h-xd. */
400
401DF
402sh64_h_xd_get (SIM_CPU *current_cpu, UINT regno)
403{
404 return GET_H_XD (regno);
405}
406
407/* Set a value for h-xd. */
408
409void
410sh64_h_xd_set (SIM_CPU *current_cpu, UINT regno, DF newval)
411{
412 SET_H_XD (regno, newval);
413}
414
415/* Get the value of h-fvc. */
416
417SF
418sh64_h_fvc_get (SIM_CPU *current_cpu, UINT regno)
419{
420 return GET_H_FVC (regno);
421}
422
423/* Set a value for h-fvc. */
424
425void
426sh64_h_fvc_set (SIM_CPU *current_cpu, UINT regno, SF newval)
427{
428 SET_H_FVC (regno, newval);
429}
430
431/* Get the value of h-fpccr. */
432
433SI
434sh64_h_fpccr_get (SIM_CPU *current_cpu)
435{
436 return GET_H_FPCCR ();
437}
438
439/* Set a value for h-fpccr. */
440
441void
442sh64_h_fpccr_set (SIM_CPU *current_cpu, SI newval)
443{
444 SET_H_FPCCR (newval);
445}
446
447/* Get the value of h-gbr. */
448
449SI
450sh64_h_gbr_get (SIM_CPU *current_cpu)
451{
452 return GET_H_GBR ();
453}
454
455/* Set a value for h-gbr. */
456
457void
458sh64_h_gbr_set (SIM_CPU *current_cpu, SI newval)
459{
460 SET_H_GBR (newval);
461}
462
463/* Get the value of h-pr. */
464
465SI
466sh64_h_pr_get (SIM_CPU *current_cpu)
467{
468 return GET_H_PR ();
469}
470
471/* Set a value for h-pr. */
472
473void
474sh64_h_pr_set (SIM_CPU *current_cpu, SI newval)
475{
476 SET_H_PR (newval);
477}
478
479/* Get the value of h-macl. */
480
481SI
482sh64_h_macl_get (SIM_CPU *current_cpu)
483{
484 return GET_H_MACL ();
485}
486
487/* Set a value for h-macl. */
488
489void
490sh64_h_macl_set (SIM_CPU *current_cpu, SI newval)
491{
492 SET_H_MACL (newval);
493}
494
495/* Get the value of h-mach. */
496
497SI
498sh64_h_mach_get (SIM_CPU *current_cpu)
499{
500 return GET_H_MACH ();
501}
502
503/* Set a value for h-mach. */
504
505void
506sh64_h_mach_set (SIM_CPU *current_cpu, SI newval)
507{
508 SET_H_MACH (newval);
509}
510
511/* Get the value of h-tbit. */
512
513BI
514sh64_h_tbit_get (SIM_CPU *current_cpu)
515{
516 return GET_H_TBIT ();
517}
518
519/* Set a value for h-tbit. */
520
521void
522sh64_h_tbit_set (SIM_CPU *current_cpu, BI newval)
523{
524 SET_H_TBIT (newval);
525}
526
527/* Record trace results for INSN. */
528
529void
530sh64_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
531 int *indices, TRACE_RECORD *tr)
532{
533}
This page took 0.126035 seconds and 4 git commands to generate.