[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] hw/isa/lpc_ich9: Access memory regions via pci_address_space
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/4] hw/isa/lpc_ich9: Access memory regions via pci_address_space[_io]() |
Date: |
Wed, 11 Oct 2023 20:59:52 +0200 |
PCI functions are plugged on a PCI bus. They can only access
external memory regions via the bus.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/isa/lpc_ich9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
index 3f59980aa0..213b667f9b 100644
--- a/hw/isa/lpc_ich9.c
+++ b/hw/isa/lpc_ich9.c
@@ -707,8 +707,8 @@ static void ich9_lpc_realize(PCIDevice *d, Error **errp)
return;
}
- isa_bus = isa_bus_new(DEVICE(d), get_system_memory(), get_system_io(),
- errp);
+ isa_bus = isa_bus_new(DEVICE(d), pci_address_space(d),
+ pci_address_space_io(d), errp);
if (!isa_bus) {
return;
}
--
2.41.0