xref: /netbsd-src/external/gpl3/gdb/dist/sim/m32r/cpuall.h (revision 05fa08567a80471fd0eb3843a238392874f2577c)
1 /* Simulator CPU header for m32r.
2 
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
4 
5 Copyright (C) 1996-2024 Free Software Foundation, Inc.
6 
7 This file is part of the GNU simulators.
8 
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.
13 
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.
18 
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.
22 
23 */
24 
25 #ifndef M32R_CPUALL_H
26 #define M32R_CPUALL_H
27 
28 /* Include files for each cpu family.  */
29 
30 #ifdef WANT_CPU_M32RBF
31 #include "eng.h"
32 #include "cpu.h"
33 #include "decode.h"
34 #endif
35 
36 #ifdef WANT_CPU_M32RXF
37 #include "engx.h"
38 #include "cpux.h"
39 #include "decodex.h"
40 #endif
41 
42 #ifdef WANT_CPU_M32R2F
43 #include "eng2.h"
44 #include "cpu2.h"
45 #include "decode2.h"
46 #endif
47 
48 extern const SIM_MACH m32r_mach;
49 extern const SIM_MACH m32rx_mach;
50 extern const SIM_MACH m32r2_mach;
51 
52 #ifndef WANT_CPU
53 /* The ARGBUF struct.  */
54 struct argbuf {
55   /* These are the baseclass definitions.  */
56   IADDR addr;
57   const IDESC *idesc;
58   char trace_p;
59   char profile_p;
60   /* ??? Temporary hack for skip insns.  */
61   char skip_count;
62   char unused;
63   /* cpu specific data follows */
64 };
65 #endif
66 
67 #ifndef WANT_CPU
68 /* A cached insn.
69 
70    ??? SCACHE used to contain more than just argbuf.  We could delete the
71    type entirely and always just use ARGBUF, but for future concerns and as
72    a level of abstraction it is left in.  */
73 
74 struct scache {
75   struct argbuf argbuf;
76 };
77 #endif
78 
79 #endif /* M32R_CPUALL_H */
80