import gdb-1999-10-11 snapshot
[deliverable/binutils-gdb.git] / sim / m32r / sim-main.h
index 03f06b9b1064c8c2aba7763ebcb4e0a7ee852e9a..efd1e91fbe7dbaf893aa0ba21f89e0fbf7765970 100644 (file)
@@ -1,3 +1,4 @@
+
 /* Main header for the m32r.  */
 
 #ifndef SIM_MAIN_H
@@ -8,11 +9,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 +22,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 +58,8 @@ 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)
   M32RXF_CPU_DATA cpu_data;
-/* end-sanitize-m32rx */
 #endif
 };
 \f
This page took 0.025211 seconds and 4 git commands to generate.