sim: h8300: convert to common sim_{reason,stop}
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Nov 2015 09:04:31 +0000 (01:04 -0800)
committerMike Frysinger <vapier@gentoo.org>
Sun, 15 Nov 2015 13:15:04 +0000 (08:15 -0500)
This ends up being pretty easy as the h8300 port already supports
much of the common engine core.

sim/h8300/ChangeLog
sim/h8300/Makefile.in
sim/h8300/compile.c

index 2a12f28df7900b1e3b78c63b5fce365bcf471478..d9b385de7b5575772cf0199f5c4578ec0103647a 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (SIM_OBJS): Add sim-reason.o and sim-stop.o.
+       * compile.c (sim_stop, sim_stop_reason): Delete.
+
 2015-11-14  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.in (SIM_OBJS): Delete sim-load.o.
index c8e2ac7e16ca3b9f68f1a1a8aafd5d947c4e4e98..a7f23fb3b11bc54504c74a032059c16c51676802 100644 (file)
@@ -18,7 +18,9 @@
 ## COMMON_PRE_CONFIG_FRAG
 
 SIM_OBJS = compile.o \
-          $(SIM_NEW_COMMON_OBJS)
+       $(SIM_NEW_COMMON_OBJS) \
+       sim-reason.o \
+       sim-stop.o
 
 ## COMMON_POST_CONFIG_FRAG
 
index e5460fa660a741c413912000bec37c0ad7b440a9..19b469a7d2d007fda98b0c81384a30523ba57187 100644 (file)
@@ -1847,14 +1847,6 @@ init_pointers (SIM_DESC sd)
     }
 }
 
-int
-sim_stop (SIM_DESC sd)
-{
-  /* FIXME: use a real signal value.  */
-  sim_engine_set_run_state (sd, sim_stopped, SIGINT);
-  return 1;
-}
-
 #define OBITOP(name, f, s, op)                         \
 case O (name, SB):                             \
 {                                              \
@@ -4763,12 +4755,6 @@ sim_fetch_register (SIM_DESC sd, int rn, unsigned char *buf, int length)
   return -1;
 }
 
-void
-sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
-{
-  sim_engine_get_run_state (sd, reason, sigrc);
-}
-
 static void
 set_simcache_size (SIM_DESC sd, int n)
 {
This page took 0.027486 seconds and 4 git commands to generate.