1 /* Main header for the m32r. */
7 #include "sim-basics.h"
8 #include "cgen-types.h"
15 #include "opcode/cgen.h"
17 /* The _sim_cpu struct. */
20 /* sim/common cpu base. */
23 /* Static parts of cgen. */
26 M32R_MISC_PROFILE m32r_misc_profile
;
27 #define CPU_M32R_MISC_PROFILE(cpu) (& (cpu)->m32r_misc_profile)
29 /* CPU specific parts go here.
30 Note that in files that don't need to access these pieces WANT_CPU_FOO
31 won't be defined and thus these parts won't appear. This is ok in the
32 sense that things work. It is a source of bugs though.
33 One has to of course be careful to not take the size of this
34 struct and no structure members accessed in non-cpu specific files can
35 go after here. Oh for a better language. */
36 #if defined (WANT_CPU_M32RBF)
37 M32RBF_CPU_DATA cpu_data
;
39 #if defined (WANT_CPU_M32RXF)
40 M32RXF_CPU_DATA cpu_data
;
41 #elif defined (WANT_CPU_M32R2F)
42 M32R2F_CPU_DATA cpu_data
;
46 /* The sim_state struct. */
49 sim_cpu
*cpu
[MAX_NR_PROCESSORS
];
51 CGEN_STATE cgen_state
;
58 /* Catch address exceptions. */
59 extern SIM_CORE_SIGNAL_FN m32r_core_signal
;
60 #define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
61 m32r_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
64 /* Default memory size. */
66 #define M32R_DEFAULT_MEM_SIZE 0x2000000 /* 32M */
68 #define M32R_DEFAULT_MEM_SIZE 0x800000 /* 8M */
71 #endif /* SIM_MAIN_H */