sim: punt zfree()
authorMike Frysinger <vapier@gentoo.org>
Mon, 14 Feb 2011 05:14:28 +0000 (05:14 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 14 Feb 2011 05:14:28 +0000 (05:14 +0000)
commitd79fe0d64301cbe37e2ad0e25a051f8607f08807
tree5cbd06fb7eeda4b6d395f2180572fbf2cdceeb68
parent891e7fb179daec94b56e4a740f645e8685dee8e5
sim: punt zfree()

The sim keeps track of which allocations are zero-ed internally (via
zalloc) and then calls a helper "zfree" function rather than "free".
But this "zfree" function simply calls "free" itself.  Since I can
see no point in this and it is simply useless overhead, punt it.

The only real change is in hw-alloc.c where we remove the zalloc_p
tracking, and sim-utils.c where zfree is delete.  The rest of the
changes are a simple `sed` from "zfree" to "free".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
46 files changed:
sim/common/ChangeLog
sim/common/hw-alloc.c
sim/common/hw-base.c
sim/common/hw-handles.c
sim/common/hw-instances.c
sim/common/hw-tree.c
sim/common/sim-core.c
sim/common/sim-cpu.c
sim/common/sim-hw.c
sim/common/sim-memopt.c
sim/common/sim-module.c
sim/common/sim-options.c
sim/common/sim-profile.c
sim/common/sim-utils.c
sim/common/sim-utils.h
sim/common/sim-watch.c
sim/igen/ChangeLog
sim/igen/table.c
sim/iq2000/ChangeLog
sim/iq2000/iq2000.c
sim/mips/ChangeLog
sim/mips/dv-tx3904sio.c
sim/mips/interp.c
sim/ppc/ChangeLog
sim/ppc/cap.c
sim/ppc/corefile.c
sim/ppc/device.c
sim/ppc/emul_bugapi.c
sim/ppc/emul_netbsd.c
sim/ppc/emul_unix.c
sim/ppc/events.c
sim/ppc/hw_disk.c
sim/ppc/hw_eeprom.c
sim/ppc/hw_htab.c
sim/ppc/hw_init.c
sim/ppc/hw_memory.c
sim/ppc/main.c
sim/ppc/pk_disklabel.c
sim/ppc/sim_callbacks.h
sim/ppc/sim_calls.c
sim/ppc/table.c
sim/ppc/tree.c
sim/sh64/ChangeLog
sim/sh64/sh64.c
sim/v850/ChangeLog
sim/v850/simops.c