]> git.proxmox.com Git - qemu.git/blobdiff - hw/sh7750.c
Use glib memory allocation and free functions
[qemu.git] / hw / sh7750.c
index 4f279e7e516d7ebef36e191cf2e8b9ebaf2be632..9f3ea9285fa8bf6470151f277d519cd3dee241a8 100644 (file)
@@ -712,7 +712,7 @@ SH7750State *sh7750_init(CPUSH4State * cpu)
     int sh7750_io_memory;
     int sh7750_mm_cache_and_tlb; /* memory mapped cache and tlb */
 
-    s = qemu_mallocz(sizeof(SH7750State));
+    s = g_malloc0(sizeof(SH7750State));
     s->cpu = cpu;
     s->periph_freq = 60000000; /* 60MHz */
     sh7750_io_memory = cpu_register_io_memory(sh7750_mem_read,