1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
|
/* Misc. support for CPU family sparc32.
THIS FILE IS MACHINE GENERATED WITH CGEN.
Copyright (C) 1999 Cygnus Solutions, Inc.
This file is part of the Cygnus Simulators.
*/
#define WANT_CPU sparc32
#define WANT_CPU_SPARC32
#include "sim-main.h"
/* Get the value of h-pc. */
USI
sparc32_h_pc_get (SIM_CPU *current_cpu)
{
return CPU (h_pc);
}
/* Set a value for h-pc. */
void
sparc32_h_pc_set (SIM_CPU *current_cpu, USI newval)
{
CPU (h_pc) = newval;
}
/* Get the value of h-npc. */
SI
sparc32_h_npc_get (SIM_CPU *current_cpu)
{
return CPU (h_npc);
}
/* Set a value for h-npc. */
void
sparc32_h_npc_set (SIM_CPU *current_cpu, SI newval)
{
CPU (h_npc) = newval;
}
/* Get the value of h-gr. */
SI
sparc32_h_gr_get (SIM_CPU *current_cpu, UINT regno)
{
return GET_H_GR (regno);
}
/* Set a value for h-gr. */
void
sparc32_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
{
SET_H_GR (regno, newval);
}
/* Get the value of h-icc-c. */
BI
sparc32_h_icc_c_get (SIM_CPU *current_cpu)
{
return CPU (h_icc_c);
}
/* Set a value for h-icc-c. */
void
sparc32_h_icc_c_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_icc_c) = newval;
}
/* Get the value of h-icc-n. */
BI
sparc32_h_icc_n_get (SIM_CPU *current_cpu)
{
return CPU (h_icc_n);
}
/* Set a value for h-icc-n. */
void
sparc32_h_icc_n_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_icc_n) = newval;
}
/* Get the value of h-icc-v. */
BI
sparc32_h_icc_v_get (SIM_CPU *current_cpu)
{
return CPU (h_icc_v);
}
/* Set a value for h-icc-v. */
void
sparc32_h_icc_v_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_icc_v) = newval;
}
/* Get the value of h-icc-z. */
BI
sparc32_h_icc_z_get (SIM_CPU *current_cpu)
{
return CPU (h_icc_z);
}
/* Set a value for h-icc-z. */
void
sparc32_h_icc_z_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_icc_z) = newval;
}
/* Get the value of h-xcc-c. */
BI
sparc32_h_xcc_c_get (SIM_CPU *current_cpu)
{
return CPU (h_xcc_c);
}
/* Set a value for h-xcc-c. */
void
sparc32_h_xcc_c_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_xcc_c) = newval;
}
/* Get the value of h-xcc-n. */
BI
sparc32_h_xcc_n_get (SIM_CPU *current_cpu)
{
return CPU (h_xcc_n);
}
/* Set a value for h-xcc-n. */
void
sparc32_h_xcc_n_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_xcc_n) = newval;
}
/* Get the value of h-xcc-v. */
BI
sparc32_h_xcc_v_get (SIM_CPU *current_cpu)
{
return CPU (h_xcc_v);
}
/* Set a value for h-xcc-v. */
void
sparc32_h_xcc_v_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_xcc_v) = newval;
}
/* Get the value of h-xcc-z. */
BI
sparc32_h_xcc_z_get (SIM_CPU *current_cpu)
{
return CPU (h_xcc_z);
}
/* Set a value for h-xcc-z. */
void
sparc32_h_xcc_z_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_xcc_z) = newval;
}
/* Get the value of h-y. */
SI
sparc32_h_y_get (SIM_CPU *current_cpu)
{
return GET_H_Y ();
}
/* Set a value for h-y. */
void
sparc32_h_y_set (SIM_CPU *current_cpu, SI newval)
{
SET_H_Y (newval);
}
/* Get the value of h-asr. */
SI
sparc32_h_asr_get (SIM_CPU *current_cpu, UINT regno)
{
return CPU (h_asr[regno]);
}
/* Set a value for h-asr. */
void
sparc32_h_asr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
{
CPU (h_asr[regno]) = newval;
}
/* Get the value of h-annul-p. */
BI
sparc32_h_annul_p_get (SIM_CPU *current_cpu)
{
return CPU (h_annul_p);
}
/* Set a value for h-annul-p. */
void
sparc32_h_annul_p_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_annul_p) = newval;
}
/* Get the value of h-fr. */
SF
sparc32_h_fr_get (SIM_CPU *current_cpu, UINT regno)
{
return CPU (h_fr[regno]);
}
/* Set a value for h-fr. */
void
sparc32_h_fr_set (SIM_CPU *current_cpu, UINT regno, SF newval)
{
CPU (h_fr[regno]) = newval;
}
/* Get the value of h-psr. */
USI
sparc32_h_psr_get (SIM_CPU *current_cpu)
{
return GET_H_PSR ();
}
/* Set a value for h-psr. */
void
sparc32_h_psr_set (SIM_CPU *current_cpu, USI newval)
{
SET_H_PSR (newval);
}
/* Get the value of h-s. */
BI
sparc32_h_s_get (SIM_CPU *current_cpu)
{
return CPU (h_s);
}
/* Set a value for h-s. */
void
sparc32_h_s_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_s) = newval;
}
/* Get the value of h-ps. */
BI
sparc32_h_ps_get (SIM_CPU *current_cpu)
{
return CPU (h_ps);
}
/* Set a value for h-ps. */
void
sparc32_h_ps_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_ps) = newval;
}
/* Get the value of h-pil. */
UQI
sparc32_h_pil_get (SIM_CPU *current_cpu)
{
return CPU (h_pil);
}
/* Set a value for h-pil. */
void
sparc32_h_pil_set (SIM_CPU *current_cpu, UQI newval)
{
CPU (h_pil) = newval;
}
/* Get the value of h-et. */
BI
sparc32_h_et_get (SIM_CPU *current_cpu)
{
return CPU (h_et);
}
/* Set a value for h-et. */
void
sparc32_h_et_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_et) = newval;
}
/* Get the value of h-tbr. */
SI
sparc32_h_tbr_get (SIM_CPU *current_cpu)
{
return GET_H_TBR ();
}
/* Set a value for h-tbr. */
void
sparc32_h_tbr_set (SIM_CPU *current_cpu, SI newval)
{
SET_H_TBR (newval);
}
/* Get the value of h-cwp. */
UQI
sparc32_h_cwp_get (SIM_CPU *current_cpu)
{
return GET_H_CWP ();
}
/* Set a value for h-cwp. */
void
sparc32_h_cwp_set (SIM_CPU *current_cpu, UQI newval)
{
SET_H_CWP (newval);
}
/* Get the value of h-wim. */
USI
sparc32_h_wim_get (SIM_CPU *current_cpu)
{
return GET_H_WIM ();
}
/* Set a value for h-wim. */
void
sparc32_h_wim_set (SIM_CPU *current_cpu, USI newval)
{
SET_H_WIM (newval);
}
/* Get the value of h-ag. */
QI
sparc32_h_ag_get (SIM_CPU *current_cpu)
{
return CPU (h_ag);
}
/* Set a value for h-ag. */
void
sparc32_h_ag_set (SIM_CPU *current_cpu, QI newval)
{
CPU (h_ag) = newval;
}
/* Get the value of h-ec. */
BI
sparc32_h_ec_get (SIM_CPU *current_cpu)
{
return CPU (h_ec);
}
/* Set a value for h-ec. */
void
sparc32_h_ec_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_ec) = newval;
}
/* Get the value of h-ef. */
BI
sparc32_h_ef_get (SIM_CPU *current_cpu)
{
return CPU (h_ef);
}
/* Set a value for h-ef. */
void
sparc32_h_ef_set (SIM_CPU *current_cpu, BI newval)
{
CPU (h_ef) = newval;
}
/* Get the value of h-fsr. */
USI
sparc32_h_fsr_get (SIM_CPU *current_cpu)
{
return CPU (h_fsr);
}
/* Set a value for h-fsr. */
void
sparc32_h_fsr_set (SIM_CPU *current_cpu, USI newval)
{
CPU (h_fsr) = newval;
}
/* Record trace results for INSN. */
void
sparc32_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
int *indices, TRACE_RECORD *tr)
{
}
|