mpc106: Allow multiple of the same PCI device.

Grackle allows attaching different PCI devices. This change allows attach multiple of the same PCI device. To make the name unique in the machine map, the name of the PCI slot is appended to the device name.
This commit is contained in:
joevt 2022-12-21 04:19:36 -08:00 committed by dingusdev
parent 3b3634bf5f
commit 6931b2944b
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ int MPC106::device_postinit()
for (auto& slot : pci_slots) {
pci_dev_name = GET_STR_PROP(slot.first);
if (!pci_dev_name.empty()) {
this->attach_pci_device(pci_dev_name, slot.second);
this->attach_pci_device(pci_dev_name, slot.second, std::string("@") + slot.first);
}
}