]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/lm32/cpu.c
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / sim / lm32 / cpu.c
CommitLineData
c28c63d8
JB
1/* Misc. support for CPU family lm32bf.
2
3THIS FILE IS MACHINE GENERATED WITH CGEN.
4
e2882c85 5Copyright 1996-2018 Free Software Foundation, Inc.
c28c63d8
JB
6
7This file is part of the GNU simulators.
8
fb067cad
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.
c28c63d8 13
fb067cad
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.
c28c63d8 18
fb067cad 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/>.
c28c63d8
JB
21
22*/
23
24#define WANT_CPU lm32bf
25#define WANT_CPU_LM32BF
26
27#include "sim-main.h"
28#include "cgen-ops.h"
29
30/* Get the value of h-pc. */
31
32USI
33lm32bf_h_pc_get (SIM_CPU *current_cpu)
34{
35 return CPU (h_pc);
36}
37
38/* Set a value for h-pc. */
39
40void
41lm32bf_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
49lm32bf_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
57lm32bf_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-csr. */
63
64SI
65lm32bf_h_csr_get (SIM_CPU *current_cpu, UINT regno)
66{
67 return CPU (h_csr[regno]);
68}
69
70/* Set a value for h-csr. */
71
72void
73lm32bf_h_csr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
74{
75 CPU (h_csr[regno]) = newval;
76}
77
78/* Record trace results for INSN. */
79
80void
81lm32bf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
82 int *indices, TRACE_RECORD *tr)
83{
84}