1 /* Misc. support for CPU family m32rxf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright 1996-2019 Free Software Foundation, Inc.
7 This file is part of the GNU simulators.
9 This file 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 3, or (at your option)
14 It is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, see <http://www.gnu.org/licenses/>.
24 #define WANT_CPU m32rxf
25 #define WANT_CPU_M32RXF
30 /* Get the value of h-pc. */
33 m32rxf_h_pc_get (SIM_CPU *current_cpu)
38 /* Set a value for h-pc. */
41 m32rxf_h_pc_set (SIM_CPU *current_cpu, USI newval)
46 /* Get the value of h-gr. */
49 m32rxf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
51 return CPU (h_gr[regno]);
54 /* Set a value for h-gr. */
57 m32rxf_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 m32rxf_h_cr_get (SIM_CPU *current_cpu, UINT regno)
67 return GET_H_CR (regno);
70 /* Set a value for h-cr. */
73 m32rxf_h_cr_set (SIM_CPU *current_cpu, UINT regno, USI newval)
75 SET_H_CR (regno, newval);
78 /* Get the value of h-accum. */
81 m32rxf_h_accum_get (SIM_CPU *current_cpu)
83 return GET_H_ACCUM ();
86 /* Set a value for h-accum. */
89 m32rxf_h_accum_set (SIM_CPU *current_cpu, DI newval)
94 /* Get the value of h-accums. */
97 m32rxf_h_accums_get (SIM_CPU *current_cpu, UINT regno)
99 return GET_H_ACCUMS (regno);
102 /* Set a value for h-accums. */
105 m32rxf_h_accums_set (SIM_CPU *current_cpu, UINT regno, DI newval)
107 SET_H_ACCUMS (regno, newval);
110 /* Get the value of h-cond. */
113 m32rxf_h_cond_get (SIM_CPU *current_cpu)
118 /* Set a value for h-cond. */
121 m32rxf_h_cond_set (SIM_CPU *current_cpu, BI newval)
123 CPU (h_cond) = newval;
126 /* Get the value of h-psw. */
129 m32rxf_h_psw_get (SIM_CPU *current_cpu)
134 /* Set a value for h-psw. */
137 m32rxf_h_psw_set (SIM_CPU *current_cpu, UQI newval)
142 /* Get the value of h-bpsw. */
145 m32rxf_h_bpsw_get (SIM_CPU *current_cpu)
150 /* Set a value for h-bpsw. */
153 m32rxf_h_bpsw_set (SIM_CPU *current_cpu, UQI newval)
155 CPU (h_bpsw) = newval;
158 /* Get the value of h-bbpsw. */
161 m32rxf_h_bbpsw_get (SIM_CPU *current_cpu)
163 return CPU (h_bbpsw);
166 /* Set a value for h-bbpsw. */
169 m32rxf_h_bbpsw_set (SIM_CPU *current_cpu, UQI newval)
171 CPU (h_bbpsw) = newval;
174 /* Get the value of h-lock. */
177 m32rxf_h_lock_get (SIM_CPU *current_cpu)
182 /* Set a value for h-lock. */
185 m32rxf_h_lock_set (SIM_CPU *current_cpu, BI newval)
187 CPU (h_lock) = newval;
190 /* Record trace results for INSN. */
193 m32rxf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
194 int *indices, TRACE_RECORD *tr)