From 35b1582872e6cd6a52ddf4cf1f3a70b546bcbaf4 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Fri, 12 Jul 2013 18:15:17 +0900 Subject: [PATCH] Fix compilation error on MacOS. Signed-off-by: SeokYeon Hwang --- target-i386/hax-darwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/hax-darwin.c b/target-i386/hax-darwin.c index 546973f45e..f8850aecd0 100644 --- a/target-i386/hax-darwin.c +++ b/target-i386/hax-darwin.c @@ -22,7 +22,7 @@ static char* qemu_strdup(const char *str) { char *ptr; size_t len = strlen(str); - ptr = qemu_vmalloc(len + 1); + ptr = g_malloc(len + 1); memcpy(ptr, str, len+1); return ptr; } @@ -67,7 +67,7 @@ int hax_set_phys_mem(MemoryRegionSection *section) { struct hax_set_ram_info info, *pinfo = &info; MemoryRegionSection *mr = section->mr; - target_phys_addr_t start_addr = section->offset_within_address_space; + hwaddr start_addr = section->offset_within_address_space; ram_addr_t size = section->size; int ret; -- 2.34.1