1 /* Misc. support for CPU family fr30bf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
7 This file is part of the GNU Simulators.
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)
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.
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.
25 #define WANT_CPU fr30bf
26 #define WANT_CPU_FR30BF
30 /* Get the value of h-pc. */
33 fr30bf_h_pc_get (SIM_CPU
*current_cpu
)
38 /* Set a value for h-pc. */
41 fr30bf_h_pc_set (SIM_CPU
*current_cpu
, USI newval
)
46 /* Get the value of h-gr. */
49 fr30bf_h_gr_get (SIM_CPU
*current_cpu
, UINT regno
)
51 return CPU (h_gr
[regno
]);
54 /* Set a value for h-gr. */
57 fr30bf_h_gr_set (SIM_CPU
*current_cpu
, UINT regno
, SI newval
)
59 CPU (h_gr
[regno
]) = newval
;
62 /* Get the value of h-cr. */
65 fr30bf_h_cr_get (SIM_CPU
*current_cpu
, UINT regno
)
67 return CPU (h_cr
[regno
]);
70 /* Set a value for h-cr. */
73 fr30bf_h_cr_set (SIM_CPU
*current_cpu
, UINT regno
, SI newval
)
75 CPU (h_cr
[regno
]) = newval
;
78 /* Get the value of h-dr. */
81 fr30bf_h_dr_get (SIM_CPU
*current_cpu
, UINT regno
)
83 return GET_H_DR (regno
);
86 /* Set a value for h-dr. */
89 fr30bf_h_dr_set (SIM_CPU
*current_cpu
, UINT regno
, SI newval
)
91 SET_H_DR (regno
, newval
);
94 /* Get the value of h-ps. */
97 fr30bf_h_ps_get (SIM_CPU
*current_cpu
)
102 /* Set a value for h-ps. */
105 fr30bf_h_ps_set (SIM_CPU
*current_cpu
, USI newval
)
110 /* Get the value of h-r13. */
113 fr30bf_h_r13_get (SIM_CPU
*current_cpu
)
118 /* Set a value for h-r13. */
121 fr30bf_h_r13_set (SIM_CPU
*current_cpu
, SI newval
)
123 CPU (h_r13
) = newval
;
126 /* Get the value of h-r14. */
129 fr30bf_h_r14_get (SIM_CPU
*current_cpu
)
134 /* Set a value for h-r14. */
137 fr30bf_h_r14_set (SIM_CPU
*current_cpu
, SI newval
)
139 CPU (h_r14
) = newval
;
142 /* Get the value of h-r15. */
145 fr30bf_h_r15_get (SIM_CPU
*current_cpu
)
150 /* Set a value for h-r15. */
153 fr30bf_h_r15_set (SIM_CPU
*current_cpu
, SI newval
)
155 CPU (h_r15
) = newval
;
158 /* Get the value of h-nbit. */
161 fr30bf_h_nbit_get (SIM_CPU
*current_cpu
)
166 /* Set a value for h-nbit. */
169 fr30bf_h_nbit_set (SIM_CPU
*current_cpu
, BI newval
)
171 CPU (h_nbit
) = newval
;
174 /* Get the value of h-zbit. */
177 fr30bf_h_zbit_get (SIM_CPU
*current_cpu
)
182 /* Set a value for h-zbit. */
185 fr30bf_h_zbit_set (SIM_CPU
*current_cpu
, BI newval
)
187 CPU (h_zbit
) = newval
;
190 /* Get the value of h-vbit. */
193 fr30bf_h_vbit_get (SIM_CPU
*current_cpu
)
198 /* Set a value for h-vbit. */
201 fr30bf_h_vbit_set (SIM_CPU
*current_cpu
, BI newval
)
203 CPU (h_vbit
) = newval
;
206 /* Get the value of h-cbit. */
209 fr30bf_h_cbit_get (SIM_CPU
*current_cpu
)
214 /* Set a value for h-cbit. */
217 fr30bf_h_cbit_set (SIM_CPU
*current_cpu
, BI newval
)
219 CPU (h_cbit
) = newval
;
222 /* Get the value of h-ibit. */
225 fr30bf_h_ibit_get (SIM_CPU
*current_cpu
)
230 /* Set a value for h-ibit. */
233 fr30bf_h_ibit_set (SIM_CPU
*current_cpu
, BI newval
)
235 CPU (h_ibit
) = newval
;
238 /* Get the value of h-sbit. */
241 fr30bf_h_sbit_get (SIM_CPU
*current_cpu
)
243 return GET_H_SBIT ();
246 /* Set a value for h-sbit. */
249 fr30bf_h_sbit_set (SIM_CPU
*current_cpu
, BI newval
)
254 /* Get the value of h-tbit. */
257 fr30bf_h_tbit_get (SIM_CPU
*current_cpu
)
262 /* Set a value for h-tbit. */
265 fr30bf_h_tbit_set (SIM_CPU
*current_cpu
, BI newval
)
267 CPU (h_tbit
) = newval
;
270 /* Get the value of h-d0bit. */
273 fr30bf_h_d0bit_get (SIM_CPU
*current_cpu
)
275 return CPU (h_d0bit
);
278 /* Set a value for h-d0bit. */
281 fr30bf_h_d0bit_set (SIM_CPU
*current_cpu
, BI newval
)
283 CPU (h_d0bit
) = newval
;
286 /* Get the value of h-d1bit. */
289 fr30bf_h_d1bit_get (SIM_CPU
*current_cpu
)
291 return CPU (h_d1bit
);
294 /* Set a value for h-d1bit. */
297 fr30bf_h_d1bit_set (SIM_CPU
*current_cpu
, BI newval
)
299 CPU (h_d1bit
) = newval
;
302 /* Get the value of h-ccr. */
305 fr30bf_h_ccr_get (SIM_CPU
*current_cpu
)
310 /* Set a value for h-ccr. */
313 fr30bf_h_ccr_set (SIM_CPU
*current_cpu
, UQI newval
)
318 /* Get the value of h-scr. */
321 fr30bf_h_scr_get (SIM_CPU
*current_cpu
)
326 /* Set a value for h-scr. */
329 fr30bf_h_scr_set (SIM_CPU
*current_cpu
, UQI newval
)
334 /* Get the value of h-ilm. */
337 fr30bf_h_ilm_get (SIM_CPU
*current_cpu
)
342 /* Set a value for h-ilm. */
345 fr30bf_h_ilm_set (SIM_CPU
*current_cpu
, UQI newval
)
350 /* Record trace results for INSN. */
353 fr30bf_record_trace_results (SIM_CPU
*current_cpu
, CGEN_INSN
*insn
,
354 int *indices
, TRACE_RECORD
*tr
)