diff mbox

[4/4] sim: cr16/d10v: drop redundant call to sim_create_inferior [committed]

Message ID 1447638512-31018-4-git-send-email-vapier@gentoo.org
State Committed
Delegated to: Mike Frysinger
Headers show

Commit Message

Mike Frysinger Nov. 16, 2015, 1:48 a.m. UTC
With the conversion to the nrun frontend, this call should no longer be
necessary.  It also actively crashes when trying to use the sd state.
---
 sim/cr16/ChangeLog | 4 ++++
 sim/cr16/interp.c  | 1 -
 sim/d10v/ChangeLog | 4 ++++
 sim/d10v/interp.c  | 1 -
 4 files changed, 8 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog
index 5cbb413..86d730b 100644
--- a/sim/cr16/ChangeLog
+++ b/sim/cr16/ChangeLog
@@ -1,3 +1,7 @@ 
+2015-11-15  Mike Frysinger  <vapier@gentoo.org>
+
+	* interp.c (sim_open): Delete sim_create_inferior call.
+
 2015-11-14  Mike Frysinger  <vapier@gentoo.org>
 
 	* interp.c (sim_close): Delete.
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c
index 8af7aef..278a5ab 100644
--- a/sim/cr16/interp.c
+++ b/sim/cr16/interp.c
@@ -940,7 +940,6 @@  sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *cb, struct bfd *abfd,
   /* reset the processor state */
   if (!State.mem.data[0])
     sim_size (1);
-  sim_create_inferior ((SIM_DESC) 1, NULL, NULL, NULL);
 
   return sd;
 }
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index 5dbad82..f77a213 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,5 +1,9 @@ 
 2015-11-15  Mike Frysinger  <vapier@gentoo.org>
 
+	* interp.c (sim_open): Delete sim_create_inferior call.
+
+2015-11-15  Mike Frysinger  <vapier@gentoo.org>
+
 	* d10v_sim.h (d10v_callback): Delete.
 	* interp.c (d10v_callback): Delete.
 	(do_long, do_2_short, do_parallel, set_dmap_register,
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index 7000429..330fbbc 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -856,7 +856,6 @@  sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
   /* reset the processor state */
   if (!State.mem.data[0])
     sim_size (1);
-  sim_create_inferior ((SIM_DESC) 1, NULL, NULL, NULL);
 
   return sd;
 }