From 6e4f085c7f459e0777a71bcb61ed3aa8257fa386 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 22 Mar 2015 23:10:09 -0400 Subject: 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. --- sim/moxie/ChangeLog | 4 ++++ sim/moxie/interp.c | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'sim/moxie') diff --git a/sim/moxie/ChangeLog b/sim/moxie/ChangeLog index 04b74ce..9f6cfde 100644 --- a/sim/moxie/ChangeLog +++ b/sim/moxie/ChangeLog @@ -1,3 +1,7 @@ +2015-11-14 Mike Frysinger + + * interp.c (sim_close): Delete. + 2015-10-11 Mike Frysinger PR sim/18273 diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c index df92cee..b2e6352 100644 --- a/sim/moxie/interp.c +++ b/sim/moxie/interp.c @@ -1246,13 +1246,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 */ -} - - /* Load the device tree blob. */ static void -- cgit v1.1