This commit was generated by cvs2svn to track changes on a CVS vendor
[binutils-gdb.git] / sim / fr30 / cpu.c
1 /* Misc. support for CPU family fr30bf.
2
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5 Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
6
7 This file is part of the GNU Simulators.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 */
24
25 #define WANT_CPU fr30bf
26 #define WANT_CPU_FR30BF
27
28 #include "sim-main.h"
29
30 /* Get the value of h-pc. */
31
32 USI
33 fr30bf_h_pc_get (SIM_CPU *current_cpu)
34 {
35 return CPU (h_pc);
36 }
37
38 /* Set a value for h-pc. */
39
40 void
41 fr30bf_h_pc_set (SIM_CPU *current_cpu, USI newval)
42 {
43 CPU (h_pc) = newval;
44 }
45
46 /* Get the value of h-gr. */
47
48 SI
49 fr30bf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
50 {
51 return CPU (h_gr[regno]);
52 }
53
54 /* Set a value for h-gr. */
55
56 void
57 fr30bf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
58 {
59 CPU (h_gr[regno]) = newval;
60 }
61
62 /* Get the value of h-cr. */
63
64 SI
65 fr30bf_h_cr_get (SIM_CPU *current_cpu, UINT regno)
66 {
67 return CPU (h_cr[regno]);
68 }
69
70 /* Set a value for h-cr. */
71
72 void
73 fr30bf_h_cr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
74 {
75 CPU (h_cr[regno]) = newval;
76 }
77
78 /* Get the value of h-dr. */
79
80 SI
81 fr30bf_h_dr_get (SIM_CPU *current_cpu, UINT regno)
82 {
83 return GET_H_DR (regno);
84 }
85
86 /* Set a value for h-dr. */
87
88 void
89 fr30bf_h_dr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
90 {
91 SET_H_DR (regno, newval);
92 }
93
94 /* Get the value of h-ps. */
95
96 USI
97 fr30bf_h_ps_get (SIM_CPU *current_cpu)
98 {
99 return GET_H_PS ();
100 }
101
102 /* Set a value for h-ps. */
103
104 void
105 fr30bf_h_ps_set (SIM_CPU *current_cpu, USI newval)
106 {
107 SET_H_PS (newval);
108 }
109
110 /* Get the value of h-r13. */
111
112 SI
113 fr30bf_h_r13_get (SIM_CPU *current_cpu)
114 {
115 return CPU (h_r13);
116 }
117
118 /* Set a value for h-r13. */
119
120 void
121 fr30bf_h_r13_set (SIM_CPU *current_cpu, SI newval)
122 {
123 CPU (h_r13) = newval;
124 }
125
126 /* Get the value of h-r14. */
127
128 SI
129 fr30bf_h_r14_get (SIM_CPU *current_cpu)
130 {
131 return CPU (h_r14);
132 }
133
134 /* Set a value for h-r14. */
135
136 void
137 fr30bf_h_r14_set (SIM_CPU *current_cpu, SI newval)
138 {
139 CPU (h_r14) = newval;
140 }
141
142 /* Get the value of h-r15. */
143
144 SI
145 fr30bf_h_r15_get (SIM_CPU *current_cpu)
146 {
147 return CPU (h_r15);
148 }
149
150 /* Set a value for h-r15. */
151
152 void
153 fr30bf_h_r15_set (SIM_CPU *current_cpu, SI newval)
154 {
155 CPU (h_r15) = newval;
156 }
157
158 /* Get the value of h-nbit. */
159
160 BI
161 fr30bf_h_nbit_get (SIM_CPU *current_cpu)
162 {
163 return CPU (h_nbit);
164 }
165
166 /* Set a value for h-nbit. */
167
168 void
169 fr30bf_h_nbit_set (SIM_CPU *current_cpu, BI newval)
170 {
171 CPU (h_nbit) = newval;
172 }
173
174 /* Get the value of h-zbit. */
175
176 BI
177 fr30bf_h_zbit_get (SIM_CPU *current_cpu)
178 {
179 return CPU (h_zbit);
180 }
181
182 /* Set a value for h-zbit. */
183
184 void
185 fr30bf_h_zbit_set (SIM_CPU *current_cpu, BI newval)
186 {
187 CPU (h_zbit) = newval;
188 }
189
190 /* Get the value of h-vbit. */
191
192 BI
193 fr30bf_h_vbit_get (SIM_CPU *current_cpu)
194 {
195 return CPU (h_vbit);
196 }
197
198 /* Set a value for h-vbit. */
199
200 void
201 fr30bf_h_vbit_set (SIM_CPU *current_cpu, BI newval)
202 {
203 CPU (h_vbit) = newval;
204 }
205
206 /* Get the value of h-cbit. */
207
208 BI
209 fr30bf_h_cbit_get (SIM_CPU *current_cpu)
210 {
211 return CPU (h_cbit);
212 }
213
214 /* Set a value for h-cbit. */
215
216 void
217 fr30bf_h_cbit_set (SIM_CPU *current_cpu, BI newval)
218 {
219 CPU (h_cbit) = newval;
220 }
221
222 /* Get the value of h-ibit. */
223
224 BI
225 fr30bf_h_ibit_get (SIM_CPU *current_cpu)
226 {
227 return CPU (h_ibit);
228 }
229
230 /* Set a value for h-ibit. */
231
232 void
233 fr30bf_h_ibit_set (SIM_CPU *current_cpu, BI newval)
234 {
235 CPU (h_ibit) = newval;
236 }
237
238 /* Get the value of h-sbit. */
239
240 BI
241 fr30bf_h_sbit_get (SIM_CPU *current_cpu)
242 {
243 return GET_H_SBIT ();
244 }
245
246 /* Set a value for h-sbit. */
247
248 void
249 fr30bf_h_sbit_set (SIM_CPU *current_cpu, BI newval)
250 {
251 SET_H_SBIT (newval);
252 }
253
254 /* Get the value of h-tbit. */
255
256 BI
257 fr30bf_h_tbit_get (SIM_CPU *current_cpu)
258 {
259 return CPU (h_tbit);
260 }
261
262 /* Set a value for h-tbit. */
263
264 void
265 fr30bf_h_tbit_set (SIM_CPU *current_cpu, BI newval)
266 {
267 CPU (h_tbit) = newval;
268 }
269
270 /* Get the value of h-d0bit. */
271
272 BI
273 fr30bf_h_d0bit_get (SIM_CPU *current_cpu)
274 {
275 return CPU (h_d0bit);
276 }
277
278 /* Set a value for h-d0bit. */
279
280 void
281 fr30bf_h_d0bit_set (SIM_CPU *current_cpu, BI newval)
282 {
283 CPU (h_d0bit) = newval;
284 }
285
286 /* Get the value of h-d1bit. */
287
288 BI
289 fr30bf_h_d1bit_get (SIM_CPU *current_cpu)
290 {
291 return CPU (h_d1bit);
292 }
293
294 /* Set a value for h-d1bit. */
295
296 void
297 fr30bf_h_d1bit_set (SIM_CPU *current_cpu, BI newval)
298 {
299 CPU (h_d1bit) = newval;
300 }
301
302 /* Get the value of h-ccr. */
303
304 UQI
305 fr30bf_h_ccr_get (SIM_CPU *current_cpu)
306 {
307 return GET_H_CCR ();
308 }
309
310 /* Set a value for h-ccr. */
311
312 void
313 fr30bf_h_ccr_set (SIM_CPU *current_cpu, UQI newval)
314 {
315 SET_H_CCR (newval);
316 }
317
318 /* Get the value of h-scr. */
319
320 UQI
321 fr30bf_h_scr_get (SIM_CPU *current_cpu)
322 {
323 return GET_H_SCR ();
324 }
325
326 /* Set a value for h-scr. */
327
328 void
329 fr30bf_h_scr_set (SIM_CPU *current_cpu, UQI newval)
330 {
331 SET_H_SCR (newval);
332 }
333
334 /* Get the value of h-ilm. */
335
336 UQI
337 fr30bf_h_ilm_get (SIM_CPU *current_cpu)
338 {
339 return GET_H_ILM ();
340 }
341
342 /* Set a value for h-ilm. */
343
344 void
345 fr30bf_h_ilm_set (SIM_CPU *current_cpu, UQI newval)
346 {
347 SET_H_ILM (newval);
348 }
349
350 /* Record trace results for INSN. */
351
352 void
353 fr30bf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
354 int *indices, TRACE_RECORD *tr)
355 {
356 }