summaryrefslogtreecommitdiff
path: root/hw/ide/ich.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-04-04 18:28:02 +0300
committerMichael S. Tsirkin <mst@redhat.com>2011-04-07 13:56:46 +0300
commit667bb59d2358daeef179583c944becba3f1f9680 (patch)
treec8af44ed0610964b2f588bb56e2c817a76d11b6c /hw/ide/ich.c
parentf32dd06ba6299e6c9174e94bd0ac9e4f7828bd78 (diff)
downloadqemu-667bb59d2358daeef179583c944becba3f1f9680.tar.gz
ich/ahci: convert to pci_register_bar_simple()
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/ide/ich.c')
-rw-r--r--hw/ide/ich.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ide/ich.c b/hw/ide/ich.c
index f242d7a81f..eb00f03b33 100644
--- a/hw/ide/ich.c
+++ b/hw/ide/ich.c
@@ -95,8 +95,7 @@ static int pci_ich9_ahci_init(PCIDevice *dev)
qemu_register_reset(ahci_reset, d);
/* XXX BAR size should be 1k, but that breaks, so bump it to 4k for now */
- pci_register_bar(&d->card, 5, 0x1000, PCI_BASE_ADDRESS_SPACE_MEMORY,
- ahci_pci_map);
+ pci_register_bar_simple(&d->card, 5, 0x1000, 0, d->ahci.mem);
msi_init(dev, 0x50, 1, true, false);