]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/bpf/cpu.c
Automatic Copyright Year update after running gdb/copyright.py
[thirdparty/binutils-gdb.git] / sim / bpf / cpu.c
CommitLineData
8c4c1818
JM
1/* Misc. support for CPU family bpfbf.
2
3THIS FILE IS MACHINE GENERATED WITH CGEN.
4
4a94e368 5Copyright (C) 1996-2022 Free Software Foundation, Inc.
8c4c1818
JM
6
7This file is part of the GNU simulators.
8
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.
13
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.
18
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.
22
23*/
24
25#define WANT_CPU bpfbf
26#define WANT_CPU_BPFBF
27
28#include "sim-main.h"
29#include "cgen-ops.h"
30
31/* Get the value of h-gpr. */
32
33DI
34bpfbf_h_gpr_get (SIM_CPU *current_cpu, UINT regno)
35{
36 return CPU (h_gpr[regno]);
37}
38
39/* Set a value for h-gpr. */
40
41void
42bpfbf_h_gpr_set (SIM_CPU *current_cpu, UINT regno, DI newval)
43{
44 CPU (h_gpr[regno]) = newval;
45}
46
47/* Get the value of h-pc. */
48
49UDI
50bpfbf_h_pc_get (SIM_CPU *current_cpu)
51{
52 return GET_H_PC ();
53}
54
55/* Set a value for h-pc. */
56
57void
58bpfbf_h_pc_set (SIM_CPU *current_cpu, UDI newval)
59{
60 SET_H_PC (newval);
61}