PCI functions are plugged on a PCI bus. They can only access external memory regions via the bus. Use the corresponding pci_address_space() / pci_address_space_io() for that.
Philippe Mathieu-Daudé (4): hw/isa/i82378: Access memory regions via pci_address_space() hw/isa/lpc_ich9: Access memory regions via pci_address_space[_io]() hw/pci-host/bonito: Access memory regions via pci_address_space[_io]() hw/sparc64/ebus: Access memory regions via pci_address_space_io() hw/isa/i82378.c | 2 +- hw/isa/lpc_ich9.c | 4 ++-- hw/pci-host/bonito.c | 6 +++--- hw/sparc64/sun4u.c | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) -- 2.41.0