]> git.proxmox.com Git - qemu.git/blobdiff - target-mips/translate.c
Use glib memory allocation and free functions
[qemu.git] / target-mips / translate.c
index 2848c6a692b486cfa1dcf695fbfe2c4aa8bf657e..6c4e0d7675025d8432491a308580eaf35cf1cb9e 100644 (file)
@@ -12618,7 +12618,7 @@ CPUMIPSState *cpu_mips_init (const char *cpu_model)
     def = cpu_mips_find_by_name(cpu_model);
     if (!def)
         return NULL;
-    env = qemu_mallocz(sizeof(CPUMIPSState));
+    env = g_malloc0(sizeof(CPUMIPSState));
     env->cpu_model = def;
     env->cpu_model_str = cpu_model;