diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-22 23:10:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-11-15 02:30:19 -0500 |
commit | 6e4f085c7f459e0777a71bcb61ed3aa8257fa386 (patch) | |
tree | e2d1bc33b00d55f6765b8cc8cebb41b4cda7cb81 /sim/lm32/sim-if.c | |
parent | 1bd1b714219e1c8324cc2fb5feb4496e80b6adfd (diff) | |
download | fsf-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/lm32/sim-if.c')
-rw-r--r-- | sim/lm32/sim-if.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sim/lm32/sim-if.c b/sim/lm32/sim-if.c index a82b428..3b0575a 100644 --- a/sim/lm32/sim-if.c +++ b/sim/lm32/sim-if.c @@ -246,15 +246,6 @@ sim_open (kind, callback, abfd, argv) return sd; } - -void -sim_close (sd, quitting) - SIM_DESC sd; - int quitting; -{ - lm32_cgen_cpu_close (CPU_CPU_DESC (STATE_CPU (sd, 0))); - sim_module_uninstall (sd); -} SIM_RC sim_create_inferior (sd, abfd, argv, envp) |