* sim/cris/asm/movmp8.ms, sim/cris/asm/pcplus.ms: New tests.
[deliverable/binutils-gdb.git] / sim / cris / cpuv10.c
CommitLineData
f6bcefef
HPN
1/* Misc. support for CPU family crisv10f.
2
3THIS FILE IS MACHINE GENERATED WITH CGEN.
4
cce0efb5 5Copyright 1996-2005 Free Software Foundation, Inc.
f6bcefef
HPN
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.,
cf2bf87e 2151 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
f6bcefef
HPN
22
23*/
24
25#define WANT_CPU crisv10f
26#define WANT_CPU_CRISV10F
27
28#include "sim-main.h"
29#include "cgen-ops.h"
30
31/* Get the value of h-v32-non-v32. */
32
33BI
34crisv10f_h_v32_non_v32_get (SIM_CPU *current_cpu)
35{
36 return GET_H_V32_NON_V32 ();
37}
38
39/* Set a value for h-v32-non-v32. */
40
41void
42crisv10f_h_v32_non_v32_set (SIM_CPU *current_cpu, BI newval)
43{
44 SET_H_V32_NON_V32 (newval);
45}
46
47/* Get the value of h-pc. */
48
49USI
50crisv10f_h_pc_get (SIM_CPU *current_cpu)
51{
52 return CPU (h_pc);
53}
54
55/* Set a value for h-pc. */
56
57void
58crisv10f_h_pc_set (SIM_CPU *current_cpu, USI newval)
59{
60 SET_H_PC (newval);
61}
62
63/* Get the value of h-gr. */
64
65SI
66crisv10f_h_gr_get (SIM_CPU *current_cpu, UINT regno)
67{
68 return GET_H_GR (regno);
69}
70
71/* Set a value for h-gr. */
72
73void
74crisv10f_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
75{
76 SET_H_GR (regno, newval);
77}
78
79/* Get the value of h-gr-pc. */
80
81SI
82crisv10f_h_gr_pc_get (SIM_CPU *current_cpu, UINT regno)
83{
84 return GET_H_GR_PC (regno);
85}
86
87/* Set a value for h-gr-pc. */
88
89void
90crisv10f_h_gr_pc_set (SIM_CPU *current_cpu, UINT regno, SI newval)
91{
92 SET_H_GR_PC (regno, newval);
93}
94
95/* Get the value of h-gr-real-pc. */
96
97SI
98crisv10f_h_gr_real_pc_get (SIM_CPU *current_cpu, UINT regno)
99{
100 return CPU (h_gr_real_pc[regno]);
101}
102
103/* Set a value for h-gr-real-pc. */
104
105void
106crisv10f_h_gr_real_pc_set (SIM_CPU *current_cpu, UINT regno, SI newval)
107{
108 CPU (h_gr_real_pc[regno]) = newval;
109}
110
111/* Get the value of h-raw-gr-pc. */
112
113SI
114crisv10f_h_raw_gr_pc_get (SIM_CPU *current_cpu, UINT regno)
115{
116 return GET_H_RAW_GR_PC (regno);
117}
118
119/* Set a value for h-raw-gr-pc. */
120
121void
122crisv10f_h_raw_gr_pc_set (SIM_CPU *current_cpu, UINT regno, SI newval)
123{
124 SET_H_RAW_GR_PC (regno, newval);
125}
126
127/* Get the value of h-sr. */
128
129SI
130crisv10f_h_sr_get (SIM_CPU *current_cpu, UINT regno)
131{
132 return GET_H_SR (regno);
133}
134
135/* Set a value for h-sr. */
136
137void
138crisv10f_h_sr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
139{
140 SET_H_SR (regno, newval);
141}
142
143/* Get the value of h-sr-v10. */
144
145SI
146crisv10f_h_sr_v10_get (SIM_CPU *current_cpu, UINT regno)
147{
148 return GET_H_SR_V10 (regno);
149}
150
151/* Set a value for h-sr-v10. */
152
153void
154crisv10f_h_sr_v10_set (SIM_CPU *current_cpu, UINT regno, SI newval)
155{
156 SET_H_SR_V10 (regno, newval);
157}
158
159/* Get the value of h-cbit. */
160
161BI
162crisv10f_h_cbit_get (SIM_CPU *current_cpu)
163{
164 return CPU (h_cbit);
165}
166
167/* Set a value for h-cbit. */
168
169void
170crisv10f_h_cbit_set (SIM_CPU *current_cpu, BI newval)
171{
172 CPU (h_cbit) = newval;
173}
174
175/* Get the value of h-cbit-move. */
176
177BI
178crisv10f_h_cbit_move_get (SIM_CPU *current_cpu)
179{
180 return GET_H_CBIT_MOVE ();
181}
182
183/* Set a value for h-cbit-move. */
184
185void
186crisv10f_h_cbit_move_set (SIM_CPU *current_cpu, BI newval)
187{
188 SET_H_CBIT_MOVE (newval);
189}
190
191/* Get the value of h-cbit-move-pre-v32. */
192
193BI
194crisv10f_h_cbit_move_pre_v32_get (SIM_CPU *current_cpu)
195{
196 return GET_H_CBIT_MOVE_PRE_V32 ();
197}
198
199/* Set a value for h-cbit-move-pre-v32. */
200
201void
202crisv10f_h_cbit_move_pre_v32_set (SIM_CPU *current_cpu, BI newval)
203{
204 SET_H_CBIT_MOVE_PRE_V32 (newval);
205}
206
207/* Get the value of h-vbit. */
208
209BI
210crisv10f_h_vbit_get (SIM_CPU *current_cpu)
211{
212 return CPU (h_vbit);
213}
214
215/* Set a value for h-vbit. */
216
217void
218crisv10f_h_vbit_set (SIM_CPU *current_cpu, BI newval)
219{
220 CPU (h_vbit) = newval;
221}
222
223/* Get the value of h-vbit-move. */
224
225BI
226crisv10f_h_vbit_move_get (SIM_CPU *current_cpu)
227{
228 return GET_H_VBIT_MOVE ();
229}
230
231/* Set a value for h-vbit-move. */
232
233void
234crisv10f_h_vbit_move_set (SIM_CPU *current_cpu, BI newval)
235{
236 SET_H_VBIT_MOVE (newval);
237}
238
239/* Get the value of h-vbit-move-pre-v32. */
240
241BI
242crisv10f_h_vbit_move_pre_v32_get (SIM_CPU *current_cpu)
243{
244 return GET_H_VBIT_MOVE_PRE_V32 ();
245}
246
247/* Set a value for h-vbit-move-pre-v32. */
248
249void
250crisv10f_h_vbit_move_pre_v32_set (SIM_CPU *current_cpu, BI newval)
251{
252 SET_H_VBIT_MOVE_PRE_V32 (newval);
253}
254
255/* Get the value of h-zbit. */
256
257BI
258crisv10f_h_zbit_get (SIM_CPU *current_cpu)
259{
260 return CPU (h_zbit);
261}
262
263/* Set a value for h-zbit. */
264
265void
266crisv10f_h_zbit_set (SIM_CPU *current_cpu, BI newval)
267{
268 CPU (h_zbit) = newval;
269}
270
271/* Get the value of h-zbit-move. */
272
273BI
274crisv10f_h_zbit_move_get (SIM_CPU *current_cpu)
275{
276 return GET_H_ZBIT_MOVE ();
277}
278
279/* Set a value for h-zbit-move. */
280
281void
282crisv10f_h_zbit_move_set (SIM_CPU *current_cpu, BI newval)
283{
284 SET_H_ZBIT_MOVE (newval);
285}
286
287/* Get the value of h-zbit-move-pre-v32. */
288
289BI
290crisv10f_h_zbit_move_pre_v32_get (SIM_CPU *current_cpu)
291{
292 return GET_H_ZBIT_MOVE_PRE_V32 ();
293}
294
295/* Set a value for h-zbit-move-pre-v32. */
296
297void
298crisv10f_h_zbit_move_pre_v32_set (SIM_CPU *current_cpu, BI newval)
299{
300 SET_H_ZBIT_MOVE_PRE_V32 (newval);
301}
302
303/* Get the value of h-nbit. */
304
305BI
306crisv10f_h_nbit_get (SIM_CPU *current_cpu)
307{
308 return CPU (h_nbit);
309}
310
311/* Set a value for h-nbit. */
312
313void
314crisv10f_h_nbit_set (SIM_CPU *current_cpu, BI newval)
315{
316 CPU (h_nbit) = newval;
317}
318
319/* Get the value of h-nbit-move. */
320
321BI
322crisv10f_h_nbit_move_get (SIM_CPU *current_cpu)
323{
324 return GET_H_NBIT_MOVE ();
325}
326
327/* Set a value for h-nbit-move. */
328
329void
330crisv10f_h_nbit_move_set (SIM_CPU *current_cpu, BI newval)
331{
332 SET_H_NBIT_MOVE (newval);
333}
334
335/* Get the value of h-nbit-move-pre-v32. */
336
337BI
338crisv10f_h_nbit_move_pre_v32_get (SIM_CPU *current_cpu)
339{
340 return GET_H_NBIT_MOVE_PRE_V32 ();
341}
342
343/* Set a value for h-nbit-move-pre-v32. */
344
345void
346crisv10f_h_nbit_move_pre_v32_set (SIM_CPU *current_cpu, BI newval)
347{
348 SET_H_NBIT_MOVE_PRE_V32 (newval);
349}
350
351/* Get the value of h-xbit. */
352
353BI
354crisv10f_h_xbit_get (SIM_CPU *current_cpu)
355{
356 return CPU (h_xbit);
357}
358
359/* Set a value for h-xbit. */
360
361void
362crisv10f_h_xbit_set (SIM_CPU *current_cpu, BI newval)
363{
364 CPU (h_xbit) = newval;
365}
366
367/* Get the value of h-ibit. */
368
369BI
370crisv10f_h_ibit_get (SIM_CPU *current_cpu)
371{
372 return GET_H_IBIT ();
373}
374
375/* Set a value for h-ibit. */
376
377void
378crisv10f_h_ibit_set (SIM_CPU *current_cpu, BI newval)
379{
380 SET_H_IBIT (newval);
381}
382
383/* Get the value of h-ibit-pre-v32. */
384
385BI
386crisv10f_h_ibit_pre_v32_get (SIM_CPU *current_cpu)
387{
388 return CPU (h_ibit_pre_v32);
389}
390
391/* Set a value for h-ibit-pre-v32. */
392
393void
394crisv10f_h_ibit_pre_v32_set (SIM_CPU *current_cpu, BI newval)
395{
396 CPU (h_ibit_pre_v32) = newval;
397}
398
399/* Get the value of h-pbit. */
400
401BI
402crisv10f_h_pbit_get (SIM_CPU *current_cpu)
403{
404 return CPU (h_pbit);
405}
406
407/* Set a value for h-pbit. */
408
409void
410crisv10f_h_pbit_set (SIM_CPU *current_cpu, BI newval)
411{
412 CPU (h_pbit) = newval;
413}
414
415/* Get the value of h-ubit. */
416
417BI
418crisv10f_h_ubit_get (SIM_CPU *current_cpu)
419{
420 return GET_H_UBIT ();
421}
422
423/* Set a value for h-ubit. */
424
425void
426crisv10f_h_ubit_set (SIM_CPU *current_cpu, BI newval)
427{
428 SET_H_UBIT (newval);
429}
430
431/* Get the value of h-ubit-pre-v32. */
432
433BI
434crisv10f_h_ubit_pre_v32_get (SIM_CPU *current_cpu)
435{
436 return CPU (h_ubit_pre_v32);
437}
438
439/* Set a value for h-ubit-pre-v32. */
440
441void
442crisv10f_h_ubit_pre_v32_set (SIM_CPU *current_cpu, BI newval)
443{
444 CPU (h_ubit_pre_v32) = newval;
445}
446
447/* Get the value of h-insn-prefixed-p. */
448
449BI
450crisv10f_h_insn_prefixed_p_get (SIM_CPU *current_cpu)
451{
452 return GET_H_INSN_PREFIXED_P ();
453}
454
455/* Set a value for h-insn-prefixed-p. */
456
457void
458crisv10f_h_insn_prefixed_p_set (SIM_CPU *current_cpu, BI newval)
459{
460 SET_H_INSN_PREFIXED_P (newval);
461}
462
463/* Get the value of h-insn-prefixed-p-pre-v32. */
464
465BI
466crisv10f_h_insn_prefixed_p_pre_v32_get (SIM_CPU *current_cpu)
467{
468 return CPU (h_insn_prefixed_p_pre_v32);
469}
470
471/* Set a value for h-insn-prefixed-p-pre-v32. */
472
473void
474crisv10f_h_insn_prefixed_p_pre_v32_set (SIM_CPU *current_cpu, BI newval)
475{
476 CPU (h_insn_prefixed_p_pre_v32) = newval;
477}
478
479/* Get the value of h-prefixreg-pre-v32. */
480
481SI
482crisv10f_h_prefixreg_pre_v32_get (SIM_CPU *current_cpu)
483{
484 return CPU (h_prefixreg_pre_v32);
485}
486
487/* Set a value for h-prefixreg-pre-v32. */
488
489void
490crisv10f_h_prefixreg_pre_v32_set (SIM_CPU *current_cpu, SI newval)
491{
492 CPU (h_prefixreg_pre_v32) = newval;
493}
494
495/* Record trace results for INSN. */
496
497void
498crisv10f_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
499 int *indices, TRACE_RECORD *tr)
500{
501}
This page took 0.069438 seconds and 4 git commands to generate.