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/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/serial.c') diff --git a/hw/serial.c b/hw/serial.c index 0ee61dd..222e356 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -797,7 +797,7 @@ SerialState *serial_init(int base, qemu_irq irq, int baudbase, { SerialState *s; - s = qemu_mallocz(sizeof(SerialState)); + s = g_malloc0(sizeof(SerialState)); s->irq = irq; s->baudbase = baudbase; @@ -931,7 +931,7 @@ SerialState *serial_mm_init (target_phys_addr_t base, int it_shift, SerialState *s; int s_io_memory; - s = qemu_mallocz(sizeof(SerialState)); + s = g_malloc0(sizeof(SerialState)); s->it_shift = it_shift; s->irq = irq; -- cgit v1.1