From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- hw/xilinx_axienet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hw/xilinx_axienet.c') diff --git a/hw/xilinx_axienet.c b/hw/xilinx_axienet.c index 464d275ad7..b875aad019 100644 --- a/hw/xilinx_axienet.c +++ b/hw/xilinx_axienet.c @@ -789,8 +789,8 @@ static void eth_cleanup(VLANClientState *nc) { /* FIXME. */ struct XilinxAXIEnet *s = DO_UPCAST(NICState, nc, nc)->opaque; - qemu_free(s->rxmem); - qemu_free(s); + g_free(s->rxmem); + g_free(s); } static void @@ -871,7 +871,7 @@ static int xilinx_enet_init(SysBusDevice *dev) s->TEMAC.parent = s; - s->rxmem = qemu_malloc(s->c_rxmem); + s->rxmem = g_malloc(s->c_rxmem); axienet_reset(s); return 0; -- cgit 1.4.1