]> git.proxmox.com Git - qemu.git/blobdiff - target-alpha/translate.c
Use glib memory allocation and free functions
[qemu.git] / target-alpha / translate.c
index c61906a8b38160a898230ee23a04fa790be139c2..1e224a2152bef0b25a15c59f9dd5454f5cf6a426 100644 (file)
@@ -3449,7 +3449,7 @@ CPUAlphaState * cpu_alpha_init (const char *cpu_model)
     CPUAlphaState *env;
     int implver, amask, i, max;
 
-    env = qemu_mallocz(sizeof(CPUAlphaState));
+    env = g_malloc0(sizeof(CPUAlphaState));
     cpu_exec_init(env);
     alpha_translate_init();
     tlb_flush(env, 1);