]> Git Repo - qemu.git/blobdiff - hw/sh7750.c
omap1: convert to memory API (part I)
[qemu.git] / hw / sh7750.c
index 19d5bf8537e5bb00c5b710a1691a3c40507bdc72..9f3ea9285fa8bf6470151f277d519cd3dee241a8 100644 (file)
@@ -29,7 +29,6 @@
 #include "sh7750_regs.h"
 #include "sh7750_regnames.h"
 #include "sh_intc.h"
-#include "exec-all.h"
 #include "cpu.h"
 
 #define NB_DEVICES 4
@@ -713,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,
This page took 0.030519 seconds and 4 git commands to generate.