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/mips_fulong2e.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/mips_fulong2e.c') diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 420fada25b..ec8c88e2e1 100644 --- a/hw/mips_fulong2e.c +++ b/hw/mips_fulong2e.c @@ -140,7 +140,7 @@ static int64_t load_kernel (CPUState *env) /* Setup prom parameters. */ prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE); - prom_buf = qemu_malloc(prom_size); + prom_buf = g_malloc(prom_size); prom_set(prom_buf, index++, "%s", loaderparams.kernel_filename); if (initrd_size > 0) { @@ -313,7 +313,7 @@ static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device, if (filename) { bios_size = load_image_targphys(filename, 0x1fc00000LL, BIOS_SIZE); - qemu_free(filename); + g_free(filename); } else { bios_size = -1; } -- cgit v1.2.1