[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] hw/isa/i82378: Access memory regions via pci_address_space()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 1/4] hw/isa/i82378: Access memory regions via pci_address_space() |
Date: |
Wed, 11 Oct 2023 20:59:51 +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/i82378.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c
index 63e0857208..95b45d0178 100644
--- a/hw/isa/i82378.c
+++ b/hw/isa/i82378.c
@@ -76,7 +76,7 @@ static void i82378_realize(PCIDevice *pci, Error **errp)
pci_config_set_interrupt_pin(pci_conf, 1); /* interrupt pin 0 */
- isabus = isa_bus_new(dev, get_system_memory(),
+ isabus = isa_bus_new(dev, pci_address_space(pci),
pci_address_space_io(pci), errp);
if (!isabus) {
return;
--
2.41.0