Fix compilation error on MacOS.
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 12 Jul 2013 09:15:17 +0000 (18:15 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 12 Jul 2013 09:15:17 +0000 (18:15 +0900)
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
target-i386/hax-darwin.c

index 546973f45e026fbbc144817b0f16e6a41e0d2bc4..f8850aecd0f7eef921fdd2763370b38fcb58960f 100644 (file)
@@ -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;