Document the GDB 10.1 release in gdb/ChangeLog
[binutils-gdb.git] / sim / bpf / cpu.c
blobc19de5d8e1fe3b43463608259c6c514ab38eb040
1 /* Misc. support for CPU family bpfbf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996-2020 Free Software Foundation, Inc.
7 This file is part of the GNU simulators.
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.
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.
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.
25 #define WANT_CPU bpfbf
26 #define WANT_CPU_BPFBF
28 #include "sim-main.h"
29 #include "cgen-ops.h"
31 /* Get the value of h-gpr. */
34 bpfbf_h_gpr_get (SIM_CPU *current_cpu, UINT regno)
36 return CPU (h_gpr[regno]);
39 /* Set a value for h-gpr. */
41 void
42 bpfbf_h_gpr_set (SIM_CPU *current_cpu, UINT regno, DI newval)
44 CPU (h_gpr[regno]) = newval;
47 /* Get the value of h-pc. */
49 UDI
50 bpfbf_h_pc_get (SIM_CPU *current_cpu)
52 return GET_H_PC ();
55 /* Set a value for h-pc. */
57 void
58 bpfbf_h_pc_set (SIM_CPU *current_cpu, UDI newval)
60 SET_H_PC (newval);
63 /* Record trace results for INSN. */
65 void
66 bpfbf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
67 int *indices, TRACE_RECORD *tr)