aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-15 01:04:31 -0800
committerMike Frysinger <vapier@gentoo.org>2015-11-15 08:15:04 -0500
commit8ae8f9c382591537963adf2398cb508c4cb3ac54 (patch)
tree54e2bf0720488f5384035da655bdead62b0d6cd7 /sim/h8300
parent7eed1055b89ad3207151734d34849dd8631d2da2 (diff)
downloadgdb-8ae8f9c382591537963adf2398cb508c4cb3ac54.zip
gdb-8ae8f9c382591537963adf2398cb508c4cb3ac54.tar.gz
gdb-8ae8f9c382591537963adf2398cb508c4cb3ac54.tar.bz2
sim: h8300: convert to common sim_{reason,stop}
This ends up being pretty easy as the h8300 port already supports much of the common engine core.
Diffstat (limited to 'sim/h8300')
-rw-r--r--sim/h8300/ChangeLog5
-rw-r--r--sim/h8300/Makefile.in4
-rw-r--r--sim/h8300/compile.c14
3 files changed, 8 insertions, 15 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog
index 2a12f28..d9b385d 100644
--- a/sim/h8300/ChangeLog
+++ b/sim/h8300/ChangeLog
@@ -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.
diff --git a/sim/h8300/Makefile.in b/sim/h8300/Makefile.in
index c8e2ac7..a7f23fb 100644
--- a/sim/h8300/Makefile.in
+++ b/sim/h8300/Makefile.in
@@ -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
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index e5460fa..19b469a 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -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)
{