diff options
Diffstat (limited to 'hw/sh4/sh7750.c')
-rw-r--r-- | hw/sh4/sh7750.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sh4/sh7750.c b/hw/sh4/sh7750.c index 43dfb64..c77792d 100644 --- a/hw/sh4/sh7750.c +++ b/hw/sh4/sh7750.c @@ -770,7 +770,7 @@ SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem) SysBusDevice *sb; MemoryRegion *mr, *alias; - s = g_malloc0(sizeof(SH7750State)); + s = g_new0(SH7750State, 1); s->cpu = cpu; s->periph_freq = 60000000; /* 60MHz */ memory_region_init_io(&s->iomem, NULL, &sh7750_mem_ops, s, |