projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
077030d
)
ahci: Unbreak bar registration
author
Jan Kiszka
<jan.kiszka@siemens.com>
Sun, 8 May 2011 17:54:52 +0000
(19:54 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 16 May 2011 15:15:47 +0000
(10:15 -0500)
Fix regression of
667bb59
: ahci_init initializes ahci.mem, so we have to
move bar registration after it.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ide/ich.c
patch
|
blob
|
history
diff --git
a/hw/ide/ich.c
b/hw/ide/ich.c
index e44339b0789530f5f9174a2413236013ff5c45d2..6150ce3343f8763e2867b6717406039b8e3369b8 100644
(file)
--- a/
hw/ide/ich.c
+++ b/
hw/ide/ich.c
@@
-93,14
+93,14
@@
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_simple(&d->card, 5, 0x1000, 0, d->ahci.mem);
-
msi_init(dev, 0x50, 1, true, false);
ahci_init(&d->ahci, &dev->qdev, 6);
d->ahci.irq = d->card.irq[0];
+ /* XXX BAR size should be 1k, but that breaks, so bump it to 4k for now */
+ pci_register_bar_simple(&d->card, 5, 0x1000, 0, d->ahci.mem);
+
return 0;
}