Regenerate cgen files, update copyright year.
[deliverable/binutils-gdb.git] / sim / m32r / cpu.c
CommitLineData
c906108c
SS
1/* Misc. support for CPU family m32rbf.
2
3THIS FILE IS MACHINE GENERATED WITH CGEN.
4
0f51e9bf 5Copyright 1996-2010 Free Software Foundation, Inc.
c906108c 6
378af1d6 7This file is part of the GNU simulators.
c906108c 8
e9c60591
DE
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)
12 any later version.
c906108c 13
e9c60591
DE
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.
c906108c 18
e9c60591
DE
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 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
c906108c
SS
22
23*/
24
25#define WANT_CPU m32rbf
26#define WANT_CPU_M32RBF
27
28#include "sim-main.h"
7a292a7a 29#include "cgen-ops.h"
c906108c
SS
30
31/* Get the value of h-pc. */
32
33USI
34m32rbf_h_pc_get (SIM_CPU *current_cpu)
35{
36 return CPU (h_pc);
37}
38
39/* Set a value for h-pc. */
40
41void
42m32rbf_h_pc_set (SIM_CPU *current_cpu, USI newval)
43{
44 CPU (h_pc) = newval;
45}
46
47/* Get the value of h-gr. */
48
49SI
50m32rbf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
51{
52 return CPU (h_gr[regno]);
53}
54
55/* Set a value for h-gr. */
56
57void
58m32rbf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
59{
60 CPU (h_gr[regno]) = newval;
61}
62
63/* Get the value of h-cr. */
64
65USI
66m32rbf_h_cr_get (SIM_CPU *current_cpu, UINT regno)
67{
68 return GET_H_CR (regno);
69}
70
71/* Set a value for h-cr. */
72
73void
74m32rbf_h_cr_set (SIM_CPU *current_cpu, UINT regno, USI newval)
75{
76 SET_H_CR (regno, newval);
77}
78
79/* Get the value of h-accum. */
80
81DI
82m32rbf_h_accum_get (SIM_CPU *current_cpu)
83{
84 return GET_H_ACCUM ();
85}
86
87/* Set a value for h-accum. */
88
89void
90m32rbf_h_accum_set (SIM_CPU *current_cpu, DI newval)
91{
92 SET_H_ACCUM (newval);
93}
94
c906108c
SS
95/* Get the value of h-cond. */
96
97BI
98m32rbf_h_cond_get (SIM_CPU *current_cpu)
99{
100 return CPU (h_cond);
101}
102
103/* Set a value for h-cond. */
104
105void
106m32rbf_h_cond_set (SIM_CPU *current_cpu, BI newval)
107{
108 CPU (h_cond) = newval;
109}
110
111/* Get the value of h-psw. */
112
113UQI
114m32rbf_h_psw_get (SIM_CPU *current_cpu)
115{
116 return GET_H_PSW ();
117}
118
119/* Set a value for h-psw. */
120
121void
122m32rbf_h_psw_set (SIM_CPU *current_cpu, UQI newval)
123{
124 SET_H_PSW (newval);
125}
126
127/* Get the value of h-bpsw. */
128
129UQI
130m32rbf_h_bpsw_get (SIM_CPU *current_cpu)
131{
132 return CPU (h_bpsw);
133}
134
135/* Set a value for h-bpsw. */
136
137void
138m32rbf_h_bpsw_set (SIM_CPU *current_cpu, UQI newval)
139{
140 CPU (h_bpsw) = newval;
141}
142
143/* Get the value of h-bbpsw. */
144
145UQI
146m32rbf_h_bbpsw_get (SIM_CPU *current_cpu)
147{
148 return CPU (h_bbpsw);
149}
150
151/* Set a value for h-bbpsw. */
152
153void
154m32rbf_h_bbpsw_set (SIM_CPU *current_cpu, UQI newval)
155{
156 CPU (h_bbpsw) = newval;
157}
158
159/* Get the value of h-lock. */
160
161BI
162m32rbf_h_lock_get (SIM_CPU *current_cpu)
163{
164 return CPU (h_lock);
165}
166
167/* Set a value for h-lock. */
168
169void
170m32rbf_h_lock_set (SIM_CPU *current_cpu, BI newval)
171{
172 CPU (h_lock) = newval;
173}
174
175/* Record trace results for INSN. */
176
177void
178m32rbf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
179 int *indices, TRACE_RECORD *tr)
180{
181}
This page took 0.445388 seconds and 4 git commands to generate.