1 /* CPU family header for bpfbf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996-2021 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)
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.
28 /* Maximum number of instructions that are fetched at a time.
29 This is for LIW type instructions sets (e.g. m32r). */
30 #define MAX_LIW_INSNS 1
32 /* Maximum number of instructions that can be executed in parallel. */
33 #define MAX_PARALLEL_INSNS 1
35 /* The size of an "int" needed to hold an instruction word.
36 This is usually 32 bits, but some architectures needs 64 bits. */
37 typedef CGEN_INSN_LGUINT CGEN_INSN_WORD
;
39 #include "cgen-engine.h"
41 /* CPU state information. */
43 /* Hardware elements. */
45 /* General Purpose Registers */
47 #define GET_H_GPR(a1) CPU (h_gpr)[a1]
48 #define SET_H_GPR(a1, x) (CPU (h_gpr)[a1] = (x))
51 #define GET_H_PC() CPU (h_pc)
57 #define CPU_CGEN_HW(cpu) (& (cpu)->cpu_data.hardware)
60 /* Cover fns for register access. */
61 DI
bpfbf_h_gpr_get (SIM_CPU
*, UINT
);
62 void bpfbf_h_gpr_set (SIM_CPU
*, UINT
, DI
);
63 UDI
bpfbf_h_pc_get (SIM_CPU
*);
64 void bpfbf_h_pc_set (SIM_CPU
*, UDI
);
66 /* These must be hand-written. */
67 extern CPUREG_FETCH_FN bpfbf_fetch_register
;
68 extern CPUREG_STORE_FN bpfbf_store_register
;
74 /* Collection of various things for the trace handler to use. */
76 typedef struct trace_record
{
81 #endif /* CPU_BPFBF_H */