]> Git Repo - qemu.git/blobdiff - hw/ide/mmio.c
ac97: Use PCI DMA stub functions
[qemu.git] / hw / ide / mmio.c
index 82b24b673bbb88c7344e1480086d2694bcea828c..2ec21b01632114afcc071695c74895b9fc95b085 100644 (file)
@@ -24,8 +24,6 @@
  */
 #include <hw/hw.h>
 #include "block.h"
-#include "block_int.h"
-#include "sysemu.h"
 #include "dma.h"
 
 #include <hw/ide/internal.h>
@@ -122,7 +120,7 @@ void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
                     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);
This page took 0.01994 seconds and 4 git commands to generate.