]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m32r/cpu.c
Update years in copyright notice for the GDB files.
[thirdparty/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
8acc9f48 5Copyright 1996-2013 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 19 You should have received a copy of the GNU General Public License along
51b318de 20 with this program; if not, see <http://www.gnu.org/licenses/>.
c906108c
SS
21
22*/
23
24#define WANT_CPU m32rbf
25#define WANT_CPU_M32RBF
26
27#include "sim-main.h"
7a292a7a 28#include "cgen-ops.h"
c906108c
SS
29
30/* Get the value of h-pc. */
31
32USI
33m32rbf_h_pc_get (SIM_CPU *current_cpu)
34{
35 return CPU (h_pc);
36}
37
38/* Set a value for h-pc. */
39
40void
41m32rbf_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
48SI
49m32rbf_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
56void
57m32rbf_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
64USI
65m32rbf_h_cr_get (SIM_CPU *current_cpu, UINT regno)
66{
67 return GET_H_CR (regno);
68}
69
70/* Set a value for h-cr. */
71
72void
73m32rbf_h_cr_set (SIM_CPU *current_cpu, UINT regno, USI newval)
74{
75 SET_H_CR (regno, newval);
76}
77
78/* Get the value of h-accum. */
79
80DI
81m32rbf_h_accum_get (SIM_CPU *current_cpu)
82{
83 return GET_H_ACCUM ();
84}
85
86/* Set a value for h-accum. */
87
88void
89m32rbf_h_accum_set (SIM_CPU *current_cpu, DI newval)
90{
91 SET_H_ACCUM (newval);
92}
93
c906108c
SS
94/* Get the value of h-cond. */
95
96BI
97m32rbf_h_cond_get (SIM_CPU *current_cpu)
98{
99 return CPU (h_cond);
100}
101
102/* Set a value for h-cond. */
103
104void
105m32rbf_h_cond_set (SIM_CPU *current_cpu, BI newval)
106{
107 CPU (h_cond) = newval;
108}
109
110/* Get the value of h-psw. */
111
112UQI
113m32rbf_h_psw_get (SIM_CPU *current_cpu)
114{
115 return GET_H_PSW ();
116}
117
118/* Set a value for h-psw. */
119
120void
121m32rbf_h_psw_set (SIM_CPU *current_cpu, UQI newval)
122{
123 SET_H_PSW (newval);
124}
125
126/* Get the value of h-bpsw. */
127
128UQI
129m32rbf_h_bpsw_get (SIM_CPU *current_cpu)
130{
131 return CPU (h_bpsw);
132}
133
134/* Set a value for h-bpsw. */
135
136void
137m32rbf_h_bpsw_set (SIM_CPU *current_cpu, UQI newval)
138{
139 CPU (h_bpsw) = newval;
140}
141
142/* Get the value of h-bbpsw. */
143
144UQI
145m32rbf_h_bbpsw_get (SIM_CPU *current_cpu)
146{
147 return CPU (h_bbpsw);
148}
149
150/* Set a value for h-bbpsw. */
151
152void
153m32rbf_h_bbpsw_set (SIM_CPU *current_cpu, UQI newval)
154{
155 CPU (h_bbpsw) = newval;
156}
157
158/* Get the value of h-lock. */
159
160BI
161m32rbf_h_lock_get (SIM_CPU *current_cpu)
162{
163 return CPU (h_lock);
164}
165
166/* Set a value for h-lock. */
167
168void
169m32rbf_h_lock_set (SIM_CPU *current_cpu, BI newval)
170{
171 CPU (h_lock) = newval;
172}
173
174/* Record trace results for INSN. */
175
176void
177m32rbf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
178 int *indices, TRACE_RECORD *tr)
179{
180}