]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/lm32/cpu.c
Update copyright year range in header of all files managed by GDB
[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
1d506c26 5Copyright (C) 1996-2024 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
9d4f3616
AM
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
c28c63d8
JB
22
23*/
24
25#define WANT_CPU lm32bf
26#define WANT_CPU_LM32BF
27
28#include "sim-main.h"
29#include "cgen-ops.h"
30
31/* Get the value of h-pc. */
32
33USI
34lm32bf_h_pc_get (SIM_CPU *current_cpu)
35{
36 return CPU (h_pc);
37}
38
39/* Set a value for h-pc. */
40
41void
42lm32bf_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
50lm32bf_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
58lm32bf_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-csr. */
64
65SI
66lm32bf_h_csr_get (SIM_CPU *current_cpu, UINT regno)
67{
68 return CPU (h_csr[regno]);
69}
70
71/* Set a value for h-csr. */
72
73void
74lm32bf_h_csr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
75{
76 CPU (h_csr[regno]) = newval;
77}