s/sanitize-m32rx/sanitize-cygnus/
[deliverable/binutils-gdb.git] / sim / sparc / cpu32.c
CommitLineData
8ad50a73
DE
1/* Misc. support for CPU family sparc32.
2
3THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5Copyright (C) 1999 Cygnus Solutions, Inc.
6
7This file is part of the Cygnus Simulators.
8
9
10*/
11
12#define WANT_CPU sparc32
13#define WANT_CPU_SPARC32
14
15#include "sim-main.h"
16
17/* Get the value of h-pc. */
18
19USI
20sparc32_h_pc_get (SIM_CPU *current_cpu)
21{
22 return CPU (h_pc);
23}
24
25/* Set a value for h-pc. */
26
27void
28sparc32_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
35SI
36sparc32_h_npc_get (SIM_CPU *current_cpu)
37{
38 return CPU (h_npc);
39}
40
41/* Set a value for h-npc. */
42
43void
44sparc32_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
51SI
52sparc32_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
59void
60sparc32_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
67BI
68sparc32_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
75void
76sparc32_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
83BI
84sparc32_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
91void
92sparc32_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
99BI
100sparc32_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
107void
108sparc32_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
115BI
116sparc32_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
123void
124sparc32_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
131BI
132sparc32_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
139void
140sparc32_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
147BI
148sparc32_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
155void
156sparc32_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
163BI
164sparc32_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
171void
172sparc32_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
179BI
180sparc32_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
187void
188sparc32_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
195SI
196sparc32_h_y_get (SIM_CPU *current_cpu)
197{
198 return GET_H_Y ();
199}
200
201/* Set a value for h-y. */
202
203void
204sparc32_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
211SI
212sparc32_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
219void
220sparc32_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
227BI
228sparc32_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
235void
236sparc32_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
243SF
244sparc32_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
251void
252sparc32_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-psr. */
258
259USI
260sparc32_h_psr_get (SIM_CPU *current_cpu)
261{
262 return GET_H_PSR ();
263}
264
265/* Set a value for h-psr. */
266
267void
268sparc32_h_psr_set (SIM_CPU *current_cpu, USI newval)
269{
270 SET_H_PSR (newval);
271}
272
273/* Get the value of h-s. */
274
275BI
276sparc32_h_s_get (SIM_CPU *current_cpu)
277{
278 return CPU (h_s);
279}
280
281/* Set a value for h-s. */
282
283void
284sparc32_h_s_set (SIM_CPU *current_cpu, BI newval)
285{
286 CPU (h_s) = newval;
287}
288
289/* Get the value of h-ps. */
290
291BI
292sparc32_h_ps_get (SIM_CPU *current_cpu)
293{
294 return CPU (h_ps);
295}
296
297/* Set a value for h-ps. */
298
299void
300sparc32_h_ps_set (SIM_CPU *current_cpu, BI newval)
301{
302 CPU (h_ps) = newval;
303}
304
305/* Get the value of h-pil. */
306
307UQI
308sparc32_h_pil_get (SIM_CPU *current_cpu)
309{
310 return CPU (h_pil);
311}
312
313/* Set a value for h-pil. */
314
315void
316sparc32_h_pil_set (SIM_CPU *current_cpu, UQI newval)
317{
318 CPU (h_pil) = newval;
319}
320
321/* Get the value of h-et. */
322
323BI
324sparc32_h_et_get (SIM_CPU *current_cpu)
325{
326 return CPU (h_et);
327}
328
329/* Set a value for h-et. */
330
331void
332sparc32_h_et_set (SIM_CPU *current_cpu, BI newval)
333{
334 CPU (h_et) = newval;
335}
336
337/* Get the value of h-tbr. */
338
339SI
340sparc32_h_tbr_get (SIM_CPU *current_cpu)
341{
342 return GET_H_TBR ();
343}
344
345/* Set a value for h-tbr. */
346
347void
348sparc32_h_tbr_set (SIM_CPU *current_cpu, SI newval)
349{
350 SET_H_TBR (newval);
351}
352
353/* Get the value of h-cwp. */
354
355UQI
356sparc32_h_cwp_get (SIM_CPU *current_cpu)
357{
358 return GET_H_CWP ();
359}
360
361/* Set a value for h-cwp. */
362
363void
364sparc32_h_cwp_set (SIM_CPU *current_cpu, UQI newval)
365{
366 SET_H_CWP (newval);
367}
368
369/* Get the value of h-wim. */
370
371USI
372sparc32_h_wim_get (SIM_CPU *current_cpu)
373{
374 return GET_H_WIM ();
375}
376
377/* Set a value for h-wim. */
378
379void
380sparc32_h_wim_set (SIM_CPU *current_cpu, USI newval)
381{
382 SET_H_WIM (newval);
383}
384
385/* Get the value of h-ag. */
386
387QI
388sparc32_h_ag_get (SIM_CPU *current_cpu)
389{
390 return CPU (h_ag);
391}
392
393/* Set a value for h-ag. */
394
395void
396sparc32_h_ag_set (SIM_CPU *current_cpu, QI newval)
397{
398 CPU (h_ag) = newval;
399}
400
401/* Get the value of h-ec. */
402
403BI
404sparc32_h_ec_get (SIM_CPU *current_cpu)
405{
406 return CPU (h_ec);
407}
408
409/* Set a value for h-ec. */
410
411void
412sparc32_h_ec_set (SIM_CPU *current_cpu, BI newval)
413{
414 CPU (h_ec) = newval;
415}
416
417/* Get the value of h-ef. */
418
419BI
420sparc32_h_ef_get (SIM_CPU *current_cpu)
421{
422 return CPU (h_ef);
423}
424
425/* Set a value for h-ef. */
426
427void
428sparc32_h_ef_set (SIM_CPU *current_cpu, BI newval)
429{
430 CPU (h_ef) = newval;
431}
432
433/* Get the value of h-fsr. */
434
435USI
436sparc32_h_fsr_get (SIM_CPU *current_cpu)
437{
438 return CPU (h_fsr);
439}
440
441/* Set a value for h-fsr. */
442
443void
444sparc32_h_fsr_set (SIM_CPU *current_cpu, USI newval)
445{
446 CPU (h_fsr) = newval;
447}
448
449/* Record trace results for INSN. */
450
451void
452sparc32_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
453 int *indices, TRACE_RECORD *tr)
454{
455}
This page took 0.038106 seconds and 4 git commands to generate.