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/milkymist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/milkymist.c') diff --git a/hw/milkymist.c b/hw/milkymist.c index 787984040f..93288c8401 100644 --- a/hw/milkymist.c +++ b/hw/milkymist.c @@ -99,7 +99,7 @@ milkymist_init(ram_addr_t ram_size_not_used, target_phys_addr_t cmdline_base = sdram_base + 0x1000000; size_t initrd_max = sdram_size - 0x1002000; - reset_info = qemu_mallocz(sizeof(ResetInfo)); + reset_info = g_malloc0(sizeof(ResetInfo)); if (cpu_model == NULL) { cpu_model = "lm32-full"; -- cgit v1.2.3