diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 52e431959c8a063b4d79db47e9bdcc5a8f1d21f1 (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /hw/mcf_fec.c | |
parent | 2be0e4ec99e6f88c4c48a14bdb5dd1f6413e4073 (diff) | |
download | qemu-52e431959c8a063b4d79db47e9bdcc5a8f1d21f1.tar.gz qemu-52e431959c8a063b4d79db47e9bdcc5a8f1d21f1.tar.bz2 qemu-52e431959c8a063b4d79db47e9bdcc5a8f1d21f1.zip |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mcf_fec.c')
-rw-r--r-- | hw/mcf_fec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mcf_fec.c b/hw/mcf_fec.c index 748eb5906b..42a5d77952 100644 --- a/hw/mcf_fec.c +++ b/hw/mcf_fec.c @@ -447,7 +447,7 @@ static void mcf_fec_cleanup(VLANClientState *nc) cpu_unregister_io_memory(s->mmio_index); - qemu_free(s); + g_free(s); } static NetClientInfo net_mcf_fec_info = { @@ -464,7 +464,7 @@ void mcf_fec_init(NICInfo *nd, target_phys_addr_t base, qemu_irq *irq) qemu_check_nic_model(nd, "mcf_fec"); - s = (mcf_fec_state *)qemu_mallocz(sizeof(mcf_fec_state)); + s = (mcf_fec_state *)g_malloc0(sizeof(mcf_fec_state)); s->irq = irq; s->mmio_index = cpu_register_io_memory(mcf_fec_readfn, mcf_fec_writefn, s, |