aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-22 23:10:09 -0400
committerMike Frysinger <vapier@gentoo.org>2015-11-15 02:30:19 -0500
commit6e4f085c7f459e0777a71bcb61ed3aa8257fa386 (patch)
treee2d1bc33b00d55f6765b8cc8cebb41b4cda7cb81 /sim/d10v
parent1bd1b714219e1c8324cc2fb5feb4496e80b6adfd (diff)
downloadfsf-binutils-gdb-6e4f085c7f459e0777a71bcb61ed3aa8257fa386.zip
fsf-binutils-gdb-6e4f085c7f459e0777a71bcb61ed3aa8257fa386.tar.gz
fsf-binutils-gdb-6e4f085c7f459e0777a71bcb61ed3aa8257fa386.tar.bz2
sim: sim-close: unify sim_close logic
Other than the nice advantage of all sims having to declare one fewer common function, this also fixes leakage in pretty much every sim. Many were not freeing any resources, and a few were inconsistent as to the ones they did. Now we have a single module that takes care of all the logic for us. Most of the non-cgen based ones could be deleted outright. The cgen ones required adding a callback to the arch-specific cleanup func. The few that still have close callbacks are to manage their internal state. We do not convert erc32, m32c, ppc, rl78, or rx as they do not use the common sim core.
Diffstat (limited to 'sim/d10v')
-rw-r--r--sim/d10v/ChangeLog4
-rw-r--r--sim/d10v/interp.c7
2 files changed, 4 insertions, 7 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index 765d7a5..4f22db7 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-14 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_close): Delete.
+
2015-11-10 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_d10v_translate_dmap_addr): Mark static.
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index 9c059f7..1cb1d7c 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -866,13 +866,6 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
return sd;
}
-
-void
-sim_close (SIM_DESC sd, int quitting)
-{
- /* Nothing to do. */
-}
-
uint8 *
dmem_addr (uint16 offset)
{