]> git.proxmox.com Git - qemu.git/blobdiff - target-arm/helper.c
Use glib memory allocation and free functions
[qemu.git] / target-arm / helper.c
index 8cae972344b40bd3477bec32dd1f2db3f01a4f68..d3a3ba207f0d40c1df9a13118ce61a4e788ffed8 100644 (file)
@@ -384,7 +384,7 @@ CPUARMState *cpu_arm_init(const char *cpu_model)
     id = cpu_arm_find_by_name(cpu_model);
     if (id == 0)
         return NULL;
-    env = qemu_mallocz(sizeof(CPUARMState));
+    env = g_malloc0(sizeof(CPUARMState));
     cpu_exec_init(env);
     if (!inited) {
         inited = 1;