* common/aclocal.m4: Add include of ../../config/zlib.m4.
[deliverable/binutils-gdb.git] / sim / m32r / sim-main.h
index 03f06b9b1064c8c2aba7763ebcb4e0a7ee852e9a..2cbb40b99b499d21128a0f1ba062bb9ff60113c3 100644 (file)
@@ -8,11 +8,11 @@
 struct _sim_cpu; /* FIXME: should be in sim-basics.h */
 typedef struct _sim_cpu SIM_CPU;
 
-#include "ansidecl.h"
 #include "symcat.h"
 #include "sim-basics.h"
 #include "cgen-types.h"
-#include "cpu-opc.h"
+#include "m32r-desc.h"
+#include "m32r-opc.h"
 #include "arch.h"
 
 /* These must be defined before sim-base.h.  */
@@ -21,9 +21,20 @@ typedef USI sim_cia;
 #define CIA_GET(cpu)     CPU_PC_GET (cpu)
 #define CIA_SET(cpu,val) CPU_PC_SET ((cpu), (val))
 
+#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
+do { \
+  if (cpu) /* null if ctrl-c */ \
+    sim_pc_set ((cpu), (cia)); \
+} while (0)
+#define SIM_ENGINE_RESTART_HOOK(sd, cpu, cia) \
+do { \
+  sim_pc_set ((cpu), (cia)); \
+} while (0)
+
 #include "sim-base.h"
 #include "cgen-sim.h"
-#include "cpu-sim.h"
+#include "m32r-sim.h"
+#include "opcode/cgen.h"
 \f
 /* The _sim_cpu struct.  */
 
@@ -46,10 +57,11 @@ struct _sim_cpu {
      go after here.  Oh for a better language.  */
 #if defined (WANT_CPU_M32RBF)
   M32RBF_CPU_DATA cpu_data;
-/* start-sanitize-m32rx */
-#elif defined (WANT_CPU_M32RXF)
+#endif
+#if defined (WANT_CPU_M32RXF)
   M32RXF_CPU_DATA cpu_data;
-/* end-sanitize-m32rx */
+#elif defined (WANT_CPU_M32R2F)
+  M32R2F_CPU_DATA cpu_data;
 #endif
 };
 \f
@@ -73,6 +85,10 @@ m32r_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
                  (TRANSFER), (ERROR))
 
 /* Default memory size.  */
+#ifdef M32R_LINUX
+#define M32R_DEFAULT_MEM_SIZE 0x2000000 /* 32M */
+#else
 #define M32R_DEFAULT_MEM_SIZE 0x800000 /* 8M */
+#endif
 
 #endif /* SIM_MAIN_H */
This page took 0.023314 seconds and 4 git commands to generate.