--- qemu/hw/ide/mmio.c 2018/04/24 19:02:19 1.1.1.4 +++ qemu/hw/ide/mmio.c 2018/04/24 19:30:28 1.1.1.5 @@ -24,7 +24,6 @@ */ #include #include "block.h" -#include "block_int.h" #include "dma.h" #include @@ -121,7 +120,7 @@ void mmio_ide_init (target_phys_addr_t m qemu_irq irq, int shift, DriveInfo *hd0, DriveInfo *hd1) { - MMIOState *s = qemu_mallocz(sizeof(MMIOState)); + MMIOState *s = g_malloc0(sizeof(MMIOState)); int mem1, mem2; ide_init2_with_non_qdev_drives(&s->bus, hd0, hd1, irq);