]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/sparc/cpu64.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / sparc / cpu64.c
1 /* Misc. support for CPU family sparc64.
2
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5 Copyright (C) 1999 Cygnus Solutions, Inc.
6
7 This file is part of the Cygnus Simulators.
8
9
10 */
11
12 #define WANT_CPU sparc64
13 #define WANT_CPU_SPARC64
14
15 #include "sim-main.h"
16
17 /* Get the value of h-pc. */
18
19 USI
20 sparc64_h_pc_get (SIM_CPU *current_cpu)
21 {
22 return CPU (h_pc);
23 }
24
25 /* Set a value for h-pc. */
26
27 void
28 sparc64_h_pc_set (SIM_CPU *current_cpu, USI newval)
29 {
30 CPU (h_pc) = newval;
31 }
32
33 /* Get the value of h-npc. */
34
35 SI
36 sparc64_h_npc_get (SIM_CPU *current_cpu)
37 {
38 return CPU (h_npc);
39 }
40
41 /* Set a value for h-npc. */
42
43 void
44 sparc64_h_npc_set (SIM_CPU *current_cpu, SI newval)
45 {
46 CPU (h_npc) = newval;
47 }
48
49 /* Get the value of h-gr. */
50
51 SI
52 sparc64_h_gr_get (SIM_CPU *current_cpu, UINT regno)
53 {
54 return GET_H_GR (regno);
55 }
56
57 /* Set a value for h-gr. */
58
59 void
60 sparc64_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
61 {
62 SET_H_GR (regno, newval);
63 }
64
65 /* Get the value of h-icc-c. */
66
67 BI
68 sparc64_h_icc_c_get (SIM_CPU *current_cpu)
69 {
70 return CPU (h_icc_c);
71 }
72
73 /* Set a value for h-icc-c. */
74
75 void
76 sparc64_h_icc_c_set (SIM_CPU *current_cpu, BI newval)
77 {
78 CPU (h_icc_c) = newval;
79 }
80
81 /* Get the value of h-icc-n. */
82
83 BI
84 sparc64_h_icc_n_get (SIM_CPU *current_cpu)
85 {
86 return CPU (h_icc_n);
87 }
88
89 /* Set a value for h-icc-n. */
90
91 void
92 sparc64_h_icc_n_set (SIM_CPU *current_cpu, BI newval)
93 {
94 CPU (h_icc_n) = newval;
95 }
96
97 /* Get the value of h-icc-v. */
98
99 BI
100 sparc64_h_icc_v_get (SIM_CPU *current_cpu)
101 {
102 return CPU (h_icc_v);
103 }
104
105 /* Set a value for h-icc-v. */
106
107 void
108 sparc64_h_icc_v_set (SIM_CPU *current_cpu, BI newval)
109 {
110 CPU (h_icc_v) = newval;
111 }
112
113 /* Get the value of h-icc-z. */
114
115 BI
116 sparc64_h_icc_z_get (SIM_CPU *current_cpu)
117 {
118 return CPU (h_icc_z);
119 }
120
121 /* Set a value for h-icc-z. */
122
123 void
124 sparc64_h_icc_z_set (SIM_CPU *current_cpu, BI newval)
125 {
126 CPU (h_icc_z) = newval;
127 }
128
129 /* Get the value of h-xcc-c. */
130
131 BI
132 sparc64_h_xcc_c_get (SIM_CPU *current_cpu)
133 {
134 return CPU (h_xcc_c);
135 }
136
137 /* Set a value for h-xcc-c. */
138
139 void
140 sparc64_h_xcc_c_set (SIM_CPU *current_cpu, BI newval)
141 {
142 CPU (h_xcc_c) = newval;
143 }
144
145 /* Get the value of h-xcc-n. */
146
147 BI
148 sparc64_h_xcc_n_get (SIM_CPU *current_cpu)
149 {
150 return CPU (h_xcc_n);
151 }
152
153 /* Set a value for h-xcc-n. */
154
155 void
156 sparc64_h_xcc_n_set (SIM_CPU *current_cpu, BI newval)
157 {
158 CPU (h_xcc_n) = newval;
159 }
160
161 /* Get the value of h-xcc-v. */
162
163 BI
164 sparc64_h_xcc_v_get (SIM_CPU *current_cpu)
165 {
166 return CPU (h_xcc_v);
167 }
168
169 /* Set a value for h-xcc-v. */
170
171 void
172 sparc64_h_xcc_v_set (SIM_CPU *current_cpu, BI newval)
173 {
174 CPU (h_xcc_v) = newval;
175 }
176
177 /* Get the value of h-xcc-z. */
178
179 BI
180 sparc64_h_xcc_z_get (SIM_CPU *current_cpu)
181 {
182 return CPU (h_xcc_z);
183 }
184
185 /* Set a value for h-xcc-z. */
186
187 void
188 sparc64_h_xcc_z_set (SIM_CPU *current_cpu, BI newval)
189 {
190 CPU (h_xcc_z) = newval;
191 }
192
193 /* Get the value of h-y. */
194
195 SI
196 sparc64_h_y_get (SIM_CPU *current_cpu)
197 {
198 return GET_H_Y ();
199 }
200
201 /* Set a value for h-y. */
202
203 void
204 sparc64_h_y_set (SIM_CPU *current_cpu, SI newval)
205 {
206 SET_H_Y (newval);
207 }
208
209 /* Get the value of h-asr. */
210
211 SI
212 sparc64_h_asr_get (SIM_CPU *current_cpu, UINT regno)
213 {
214 return CPU (h_asr[regno]);
215 }
216
217 /* Set a value for h-asr. */
218
219 void
220 sparc64_h_asr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
221 {
222 CPU (h_asr[regno]) = newval;
223 }
224
225 /* Get the value of h-annul-p. */
226
227 BI
228 sparc64_h_annul_p_get (SIM_CPU *current_cpu)
229 {
230 return CPU (h_annul_p);
231 }
232
233 /* Set a value for h-annul-p. */
234
235 void
236 sparc64_h_annul_p_set (SIM_CPU *current_cpu, BI newval)
237 {
238 CPU (h_annul_p) = newval;
239 }
240
241 /* Get the value of h-fr. */
242
243 SF
244 sparc64_h_fr_get (SIM_CPU *current_cpu, UINT regno)
245 {
246 return CPU (h_fr[regno]);
247 }
248
249 /* Set a value for h-fr. */
250
251 void
252 sparc64_h_fr_set (SIM_CPU *current_cpu, UINT regno, SF newval)
253 {
254 CPU (h_fr[regno]) = newval;
255 }
256
257 /* Get the value of h-ver. */
258
259 UDI
260 sparc64_h_ver_get (SIM_CPU *current_cpu)
261 {
262 return CPU (h_ver);
263 }
264
265 /* Set a value for h-ver. */
266
267 void
268 sparc64_h_ver_set (SIM_CPU *current_cpu, UDI newval)
269 {
270 CPU (h_ver) = newval;
271 }
272
273 /* Get the value of h-pstate. */
274
275 UDI
276 sparc64_h_pstate_get (SIM_CPU *current_cpu)
277 {
278 return CPU (h_pstate);
279 }
280
281 /* Set a value for h-pstate. */
282
283 void
284 sparc64_h_pstate_set (SIM_CPU *current_cpu, UDI newval)
285 {
286 CPU (h_pstate) = newval;
287 }
288
289 /* Get the value of h-tba. */
290
291 UDI
292 sparc64_h_tba_get (SIM_CPU *current_cpu)
293 {
294 return CPU (h_tba);
295 }
296
297 /* Set a value for h-tba. */
298
299 void
300 sparc64_h_tba_set (SIM_CPU *current_cpu, UDI newval)
301 {
302 CPU (h_tba) = newval;
303 }
304
305 /* Get the value of h-tt. */
306
307 UDI
308 sparc64_h_tt_get (SIM_CPU *current_cpu)
309 {
310 return CPU (h_tt);
311 }
312
313 /* Set a value for h-tt. */
314
315 void
316 sparc64_h_tt_set (SIM_CPU *current_cpu, UDI newval)
317 {
318 CPU (h_tt) = newval;
319 }
320
321 /* Get the value of h-tpc. */
322
323 UDI
324 sparc64_h_tpc_get (SIM_CPU *current_cpu)
325 {
326 return CPU (h_tpc);
327 }
328
329 /* Set a value for h-tpc. */
330
331 void
332 sparc64_h_tpc_set (SIM_CPU *current_cpu, UDI newval)
333 {
334 CPU (h_tpc) = newval;
335 }
336
337 /* Get the value of h-tnpc. */
338
339 UDI
340 sparc64_h_tnpc_get (SIM_CPU *current_cpu)
341 {
342 return CPU (h_tnpc);
343 }
344
345 /* Set a value for h-tnpc. */
346
347 void
348 sparc64_h_tnpc_set (SIM_CPU *current_cpu, UDI newval)
349 {
350 CPU (h_tnpc) = newval;
351 }
352
353 /* Get the value of h-tstate. */
354
355 UDI
356 sparc64_h_tstate_get (SIM_CPU *current_cpu)
357 {
358 return CPU (h_tstate);
359 }
360
361 /* Set a value for h-tstate. */
362
363 void
364 sparc64_h_tstate_set (SIM_CPU *current_cpu, UDI newval)
365 {
366 CPU (h_tstate) = newval;
367 }
368
369 /* Get the value of h-tl. */
370
371 UQI
372 sparc64_h_tl_get (SIM_CPU *current_cpu)
373 {
374 return CPU (h_tl);
375 }
376
377 /* Set a value for h-tl. */
378
379 void
380 sparc64_h_tl_set (SIM_CPU *current_cpu, UQI newval)
381 {
382 CPU (h_tl) = newval;
383 }
384
385 /* Get the value of h-asi. */
386
387 UQI
388 sparc64_h_asi_get (SIM_CPU *current_cpu)
389 {
390 return CPU (h_asi);
391 }
392
393 /* Set a value for h-asi. */
394
395 void
396 sparc64_h_asi_set (SIM_CPU *current_cpu, UQI newval)
397 {
398 CPU (h_asi) = newval;
399 }
400
401 /* Get the value of h-tick. */
402
403 UDI
404 sparc64_h_tick_get (SIM_CPU *current_cpu)
405 {
406 return CPU (h_tick);
407 }
408
409 /* Set a value for h-tick. */
410
411 void
412 sparc64_h_tick_set (SIM_CPU *current_cpu, UDI newval)
413 {
414 CPU (h_tick) = newval;
415 }
416
417 /* Get the value of h-cansave. */
418
419 UDI
420 sparc64_h_cansave_get (SIM_CPU *current_cpu)
421 {
422 return CPU (h_cansave);
423 }
424
425 /* Set a value for h-cansave. */
426
427 void
428 sparc64_h_cansave_set (SIM_CPU *current_cpu, UDI newval)
429 {
430 CPU (h_cansave) = newval;
431 }
432
433 /* Get the value of h-canrestore. */
434
435 UDI
436 sparc64_h_canrestore_get (SIM_CPU *current_cpu)
437 {
438 return CPU (h_canrestore);
439 }
440
441 /* Set a value for h-canrestore. */
442
443 void
444 sparc64_h_canrestore_set (SIM_CPU *current_cpu, UDI newval)
445 {
446 CPU (h_canrestore) = newval;
447 }
448
449 /* Get the value of h-otherwin. */
450
451 UDI
452 sparc64_h_otherwin_get (SIM_CPU *current_cpu)
453 {
454 return CPU (h_otherwin);
455 }
456
457 /* Set a value for h-otherwin. */
458
459 void
460 sparc64_h_otherwin_set (SIM_CPU *current_cpu, UDI newval)
461 {
462 CPU (h_otherwin) = newval;
463 }
464
465 /* Get the value of h-cleanwin. */
466
467 UDI
468 sparc64_h_cleanwin_get (SIM_CPU *current_cpu)
469 {
470 return CPU (h_cleanwin);
471 }
472
473 /* Set a value for h-cleanwin. */
474
475 void
476 sparc64_h_cleanwin_set (SIM_CPU *current_cpu, UDI newval)
477 {
478 CPU (h_cleanwin) = newval;
479 }
480
481 /* Get the value of h-wstate. */
482
483 UDI
484 sparc64_h_wstate_get (SIM_CPU *current_cpu)
485 {
486 return CPU (h_wstate);
487 }
488
489 /* Set a value for h-wstate. */
490
491 void
492 sparc64_h_wstate_set (SIM_CPU *current_cpu, UDI newval)
493 {
494 CPU (h_wstate) = newval;
495 }
496
497 /* Get the value of h-fcc0. */
498
499 UQI
500 sparc64_h_fcc0_get (SIM_CPU *current_cpu)
501 {
502 return CPU (h_fcc0);
503 }
504
505 /* Set a value for h-fcc0. */
506
507 void
508 sparc64_h_fcc0_set (SIM_CPU *current_cpu, UQI newval)
509 {
510 CPU (h_fcc0) = newval;
511 }
512
513 /* Get the value of h-fcc1. */
514
515 UQI
516 sparc64_h_fcc1_get (SIM_CPU *current_cpu)
517 {
518 return CPU (h_fcc1);
519 }
520
521 /* Set a value for h-fcc1. */
522
523 void
524 sparc64_h_fcc1_set (SIM_CPU *current_cpu, UQI newval)
525 {
526 CPU (h_fcc1) = newval;
527 }
528
529 /* Get the value of h-fcc2. */
530
531 UQI
532 sparc64_h_fcc2_get (SIM_CPU *current_cpu)
533 {
534 return CPU (h_fcc2);
535 }
536
537 /* Set a value for h-fcc2. */
538
539 void
540 sparc64_h_fcc2_set (SIM_CPU *current_cpu, UQI newval)
541 {
542 CPU (h_fcc2) = newval;
543 }
544
545 /* Get the value of h-fcc3. */
546
547 UQI
548 sparc64_h_fcc3_get (SIM_CPU *current_cpu)
549 {
550 return CPU (h_fcc3);
551 }
552
553 /* Set a value for h-fcc3. */
554
555 void
556 sparc64_h_fcc3_set (SIM_CPU *current_cpu, UQI newval)
557 {
558 CPU (h_fcc3) = newval;
559 }
560
561 /* Get the value of h-fsr-rd. */
562
563 UQI
564 sparc64_h_fsr_rd_get (SIM_CPU *current_cpu)
565 {
566 return CPU (h_fsr_rd);
567 }
568
569 /* Set a value for h-fsr-rd. */
570
571 void
572 sparc64_h_fsr_rd_set (SIM_CPU *current_cpu, UQI newval)
573 {
574 CPU (h_fsr_rd) = newval;
575 }
576
577 /* Get the value of h-fsr-tem. */
578
579 UQI
580 sparc64_h_fsr_tem_get (SIM_CPU *current_cpu)
581 {
582 return CPU (h_fsr_tem);
583 }
584
585 /* Set a value for h-fsr-tem. */
586
587 void
588 sparc64_h_fsr_tem_set (SIM_CPU *current_cpu, UQI newval)
589 {
590 CPU (h_fsr_tem) = newval;
591 }
592
593 /* Get the value of h-fsr-ns. */
594
595 BI
596 sparc64_h_fsr_ns_get (SIM_CPU *current_cpu)
597 {
598 return CPU (h_fsr_ns);
599 }
600
601 /* Set a value for h-fsr-ns. */
602
603 void
604 sparc64_h_fsr_ns_set (SIM_CPU *current_cpu, BI newval)
605 {
606 CPU (h_fsr_ns) = newval;
607 }
608
609 /* Get the value of h-fsr-ver. */
610
611 UQI
612 sparc64_h_fsr_ver_get (SIM_CPU *current_cpu)
613 {
614 return CPU (h_fsr_ver);
615 }
616
617 /* Set a value for h-fsr-ver. */
618
619 void
620 sparc64_h_fsr_ver_set (SIM_CPU *current_cpu, UQI newval)
621 {
622 CPU (h_fsr_ver) = newval;
623 }
624
625 /* Get the value of h-fsr-ftt. */
626
627 UQI
628 sparc64_h_fsr_ftt_get (SIM_CPU *current_cpu)
629 {
630 return CPU (h_fsr_ftt);
631 }
632
633 /* Set a value for h-fsr-ftt. */
634
635 void
636 sparc64_h_fsr_ftt_set (SIM_CPU *current_cpu, UQI newval)
637 {
638 CPU (h_fsr_ftt) = newval;
639 }
640
641 /* Get the value of h-fsr-qne. */
642
643 BI
644 sparc64_h_fsr_qne_get (SIM_CPU *current_cpu)
645 {
646 return CPU (h_fsr_qne);
647 }
648
649 /* Set a value for h-fsr-qne. */
650
651 void
652 sparc64_h_fsr_qne_set (SIM_CPU *current_cpu, BI newval)
653 {
654 CPU (h_fsr_qne) = newval;
655 }
656
657 /* Get the value of h-fsr-aexc. */
658
659 UQI
660 sparc64_h_fsr_aexc_get (SIM_CPU *current_cpu)
661 {
662 return CPU (h_fsr_aexc);
663 }
664
665 /* Set a value for h-fsr-aexc. */
666
667 void
668 sparc64_h_fsr_aexc_set (SIM_CPU *current_cpu, UQI newval)
669 {
670 CPU (h_fsr_aexc) = newval;
671 }
672
673 /* Get the value of h-fsr-cexc. */
674
675 UQI
676 sparc64_h_fsr_cexc_get (SIM_CPU *current_cpu)
677 {
678 return CPU (h_fsr_cexc);
679 }
680
681 /* Set a value for h-fsr-cexc. */
682
683 void
684 sparc64_h_fsr_cexc_set (SIM_CPU *current_cpu, UQI newval)
685 {
686 CPU (h_fsr_cexc) = newval;
687 }
688
689 /* Get the value of h-fpsr-fef. */
690
691 BI
692 sparc64_h_fpsr_fef_get (SIM_CPU *current_cpu)
693 {
694 return CPU (h_fpsr_fef);
695 }
696
697 /* Set a value for h-fpsr-fef. */
698
699 void
700 sparc64_h_fpsr_fef_set (SIM_CPU *current_cpu, BI newval)
701 {
702 CPU (h_fpsr_fef) = newval;
703 }
704
705 /* Get the value of h-fpsr-du. */
706
707 BI
708 sparc64_h_fpsr_du_get (SIM_CPU *current_cpu)
709 {
710 return CPU (h_fpsr_du);
711 }
712
713 /* Set a value for h-fpsr-du. */
714
715 void
716 sparc64_h_fpsr_du_set (SIM_CPU *current_cpu, BI newval)
717 {
718 CPU (h_fpsr_du) = newval;
719 }
720
721 /* Get the value of h-fpsr-dl. */
722
723 BI
724 sparc64_h_fpsr_dl_get (SIM_CPU *current_cpu)
725 {
726 return CPU (h_fpsr_dl);
727 }
728
729 /* Set a value for h-fpsr-dl. */
730
731 void
732 sparc64_h_fpsr_dl_set (SIM_CPU *current_cpu, BI newval)
733 {
734 CPU (h_fpsr_dl) = newval;
735 }
736
737 /* Get the value of h-fpsr. */
738
739 UQI
740 sparc64_h_fpsr_get (SIM_CPU *current_cpu)
741 {
742 return GET_H_FPSR ();
743 }
744
745 /* Set a value for h-fpsr. */
746
747 void
748 sparc64_h_fpsr_set (SIM_CPU *current_cpu, UQI newval)
749 {
750 SET_H_FPSR (newval);
751 }
752
753 /* Record trace results for INSN. */
754
755 void
756 sparc64_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
757 int *indices, TRACE_RECORD *tr)
758 {
759 }