mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
pci: pass address space to pci bus when created
This is now done sloppily, via get_system_memory(). Eventually callers will be converted to stop using that. Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6bd105151a
commit
1e39101c64
22 changed files with 85 additions and 35 deletions
|
@ -61,7 +61,8 @@ static void pci_grackle_reset(void *opaque)
|
|||
{
|
||||
}
|
||||
|
||||
PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic)
|
||||
PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic,
|
||||
MemoryRegion *address_space)
|
||||
{
|
||||
DeviceState *dev;
|
||||
SysBusDevice *s;
|
||||
|
@ -74,7 +75,7 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic)
|
|||
d->host_state.bus = pci_register_bus(&d->busdev.qdev, "pci",
|
||||
pci_grackle_set_irq,
|
||||
pci_grackle_map_irq,
|
||||
pic, 0, 4);
|
||||
pic, address_space, 0, 4);
|
||||
|
||||
pci_create_simple(d->host_state.bus, 0, "grackle");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue