mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
14015304b6
commit
7267c0947d
357 changed files with 1672 additions and 1674 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue