diff --git a/src/dev/pci/host.cc b/src/dev/pci/host.cc index e7dea6c359..80cd9b5a5d 100644 --- a/src/dev/pci/host.cc +++ b/src/dev/pci/host.cc @@ -168,9 +168,14 @@ GenericPciHost::write(PacketPtr pkt) pkt->getSize()); PciDevice *const pci_dev(getDevice(dev_addr.first)); - panic_if(!pci_dev, - "%02x:%02x.%i: Write to config space on non-existent PCI device\n", - dev_addr.first.bus, dev_addr.first.dev, dev_addr.first.func); + warn_if(!pci_dev, + "%02x:%02x.%i: Write to config space on non-existent PCI device\n", + dev_addr.first.bus, dev_addr.first.dev, dev_addr.first.func); + + if (!pci_dev) { + pkt->makeAtomicResponse(); + return 20000; // 20ns default from PciDevice.py + } // @todo Remove this after testing pkt->headerDelay = pkt->payloadDelay = 0;