]> git.proxmox.com Git - qemu.git/blobdiff - target-lm32/helper.c
Use glib memory allocation and free functions
[qemu.git] / target-lm32 / helper.c
index 48c402e31bb77c4636125f5065ec4dbfe799ddcc..014fd8de060194e148067dec218dd31dff2b23ce 100644 (file)
@@ -208,7 +208,7 @@ CPUState *cpu_lm32_init(const char *cpu_model)
         return NULL;
     }
 
-    env = qemu_mallocz(sizeof(CPUState));
+    env = g_malloc0(sizeof(CPUState));
 
     env->features = def->features;
     env->num_bps = def->num_breakpoints;