1 /* Misc. support for CPU family m32rbf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 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 m32rbf
26 #define WANT_CPU_M32RBF
31 /* Get the value of h-pc. */
34 m32rbf_h_pc_get (SIM_CPU
*current_cpu
)
39 /* Set a value for h-pc. */
42 m32rbf_h_pc_set (SIM_CPU
*current_cpu
, USI newval
)
47 /* Get the value of h-gr. */
50 m32rbf_h_gr_get (SIM_CPU
*current_cpu
, UINT regno
)
52 return CPU (h_gr
[regno
]);
55 /* Set a value for h-gr. */
58 m32rbf_h_gr_set (SIM_CPU
*current_cpu
, UINT regno
, SI newval
)
60 CPU (h_gr
[regno
]) = newval
;
63 /* Get the value of h-cr. */
66 m32rbf_h_cr_get (SIM_CPU
*current_cpu
, UINT regno
)
68 return GET_H_CR (regno
);
71 /* Set a value for h-cr. */
74 m32rbf_h_cr_set (SIM_CPU
*current_cpu
, UINT regno
, USI newval
)
76 SET_H_CR (regno
, newval
);
79 /* Get the value of h-accum. */
82 m32rbf_h_accum_get (SIM_CPU
*current_cpu
)
84 return GET_H_ACCUM ();
87 /* Set a value for h-accum. */
90 m32rbf_h_accum_set (SIM_CPU
*current_cpu
, DI newval
)
95 /* Get the value of h-cond. */
98 m32rbf_h_cond_get (SIM_CPU
*current_cpu
)
103 /* Set a value for h-cond. */
106 m32rbf_h_cond_set (SIM_CPU
*current_cpu
, BI newval
)
108 CPU (h_cond
) = newval
;
111 /* Get the value of h-psw. */
114 m32rbf_h_psw_get (SIM_CPU
*current_cpu
)
119 /* Set a value for h-psw. */
122 m32rbf_h_psw_set (SIM_CPU
*current_cpu
, UQI newval
)
127 /* Get the value of h-bpsw. */
130 m32rbf_h_bpsw_get (SIM_CPU
*current_cpu
)
135 /* Set a value for h-bpsw. */
138 m32rbf_h_bpsw_set (SIM_CPU
*current_cpu
, UQI newval
)
140 CPU (h_bpsw
) = newval
;
143 /* Get the value of h-bbpsw. */
146 m32rbf_h_bbpsw_get (SIM_CPU
*current_cpu
)
148 return CPU (h_bbpsw
);
151 /* Set a value for h-bbpsw. */
154 m32rbf_h_bbpsw_set (SIM_CPU
*current_cpu
, UQI newval
)
156 CPU (h_bbpsw
) = newval
;
159 /* Get the value of h-lock. */
162 m32rbf_h_lock_get (SIM_CPU
*current_cpu
)
167 /* Set a value for h-lock. */
170 m32rbf_h_lock_set (SIM_CPU
*current_cpu
, BI newval
)
172 CPU (h_lock
) = newval
;
175 /* Record trace results for INSN. */
178 m32rbf_record_trace_results (SIM_CPU
*current_cpu
, CGEN_INSN
*insn
,
179 int *indices
, TRACE_RECORD
*tr
)
This page took 0.032911 seconds and 4 git commands to generate.