Extend objdump's --show-all-symbols option so that it also shows the extra symbols...
[binutils-gdb.git] / sim / lm32 / cpu.c
blobea96ed4a3e3369b775142fa7f1d48110ca0322b0
1 /* Misc. support for CPU family lm32bf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996-2024 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 lm32bf
26 #define WANT_CPU_LM32BF
28 #include "sim-main.h"
29 #include "cgen-ops.h"
31 /* Get the value of h-pc. */
33 USI
34 lm32bf_h_pc_get (SIM_CPU *current_cpu)
36 return CPU (h_pc);
39 /* Set a value for h-pc. */
41 void
42 lm32bf_h_pc_set (SIM_CPU *current_cpu, USI newval)
44 CPU (h_pc) = newval;
47 /* Get the value of h-gr. */
50 lm32bf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
52 return CPU (h_gr[regno]);
55 /* Set a value for h-gr. */
57 void
58 lm32bf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
60 CPU (h_gr[regno]) = newval;
63 /* Get the value of h-csr. */
66 lm32bf_h_csr_get (SIM_CPU *current_cpu, UINT regno)
68 return CPU (h_csr[regno]);
71 /* Set a value for h-csr. */
73 void
74 lm32bf_h_csr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
76 CPU (h_csr[regno]) = newval;