xref: /netbsd-src/external/gpl3/gdb/dist/sim/mn10300/sim-main.h (revision 0388e998654430ce19a2917dec7ff0950bcf2e1c)
1 /*  This file is part of the program psim.
2 
3     Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
4     Copyright (C) 1997-2024 Free Software Foundation, Inc.
5 
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.
10 
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.
15 
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/>.
18 
19     */
20 
21 
22 #ifndef SIM_MAIN_H
23 #define SIM_MAIN_H
24 
25 #define SIM_ENGINE_HALT_HOOK(SD,LAST_CPU,CIA) /* disable this hook */
26 
27 #include "sim-basics.h"
28 
29 #define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR)  \
30 mn10300_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), (TRANSFER), (ERROR))
31 
32 #include "sim-base.h"
33 
34 /**
35  * TODO: Move these includes to the igen files that need them.
36  * This requires extending the igen syntax to support header includes.
37  *
38  * For now only include them in the igen generated support.c,
39  * semantics.c, idecode.c and engine.c files.
40  */
41 #if defined(SUPPORT_C) \
42     || defined(SEMANTICS_C) \
43     || defined(IDECODE_C) \
44     || defined(ENGINE_C)
45 #include "sim-fpu.h"
46 #include "sim-signal.h"
47 
48 #include "mn10300-sim.h"
49 #endif
50 
51 extern SIM_CORE_SIGNAL_FN mn10300_core_signal ATTRIBUTE_NORETURN;
52 
53 #endif
54