]> git.proxmox.com Git - qemu.git/blobdiff - target-unicore32/helper.c
Use glib memory allocation and free functions
[qemu.git] / target-unicore32 / helper.c
index 8edfcb75bef5cf94542563ba817d3ae24848128a..b5b1cb7c9bb11e29af2c5f66c62d9f88f6463fee 100644 (file)
@@ -53,7 +53,7 @@ CPUState *uc32_cpu_init(const char *cpu_model)
     uint32_t id;
     static int inited = 1;
 
-    env = qemu_mallocz(sizeof(CPUState));
+    env = g_malloc0(sizeof(CPUState));
     cpu_exec_init(env);
 
     id = uc32_cpu_find_by_name(cpu_model);