1 /* OpenRISC simulator main header
2 Copyright (C) 2017-2021 Free Software Foundation, Inc.
4 This file is part of GDB, the GNU debugger.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 #define WITH_SCACHE_PBB 1
27 #include "or1k-desc.h"
28 #include "sim-basics.h"
29 #include "cgen-types.h"
38 #define OR1K_DEFAULT_MEM_SIZE 0x800000 /* 8M */
40 /* The _sim_cpu struct. */
43 /* sim/common cpu base. */
46 /* Static parts of cgen. */
49 OR1K_MISC_PROFILE or1k_misc_profile
;
50 #define CPU_OR1K_MISC_PROFILE(cpu) (& (cpu)->or1k_misc_profile)
52 /* CPU specific parts go here.
53 Note that in files that don't need to access these pieces WANT_CPU_FOO
54 won't be defined and thus these parts won't appear. This is ok in the
55 sense that things work. It is a source of bugs though.
56 One has to of course be careful to not take the size of this
57 struct and no structure members accessed in non-cpu specific files can
58 go after here. Oh for a better language. */
61 /* Next instruction will be in delay slot. */
63 /* Currently in delay slot. */
66 #ifdef WANT_CPU_OR1K32BF
67 OR1K32BF_CPU_DATA cpu_data
;
73 /* The sim_state struct. */
76 sim_cpu
*cpu
[MAX_NR_PROCESSORS
];
78 CGEN_STATE cgen_state
;
83 #endif /* SIM_MAIN_H */