[PATCH 22/57][Arm][GAS] Add support for MVE instructions: vmlaldav, vmlalv, vmlsldav...
[binutils-gdb.git] / sim / lm32 / cpu.c
blobc2c86aaa839e90ec32f4a995b7b4b41022603b35
1 /* Misc. support for CPU family lm32bf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright 1996-2019 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, see <http://www.gnu.org/licenses/>.
24 #define WANT_CPU lm32bf
25 #define WANT_CPU_LM32BF
27 #include "sim-main.h"
28 #include "cgen-ops.h"
30 /* Get the value of h-pc. */
32 USI
33 lm32bf_h_pc_get (SIM_CPU *current_cpu)
35 return CPU (h_pc);
38 /* Set a value for h-pc. */
40 void
41 lm32bf_h_pc_set (SIM_CPU *current_cpu, USI newval)
43 CPU (h_pc) = newval;
46 /* Get the value of h-gr. */
49 lm32bf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
51 return CPU (h_gr[regno]);
54 /* Set a value for h-gr. */
56 void
57 lm32bf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
59 CPU (h_gr[regno]) = newval;
62 /* Get the value of h-csr. */
65 lm32bf_h_csr_get (SIM_CPU *current_cpu, UINT regno)
67 return CPU (h_csr[regno]);
70 /* Set a value for h-csr. */
72 void
73 lm32bf_h_csr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
75 CPU (h_csr[regno]) = newval;
78 /* Record trace results for INSN. */
80 void
81 lm32bf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
82 int *indices, TRACE_RECORD *tr)