PCI: Force the PCI_ADD_STRICT flag when adding PCI devices, in order to prevent on-board devices from being added onto non-on-board slots.

This commit is contained in:
OBattler
2024-05-10 00:33:15 +02:00
parent b67c234569
commit 723c4229ed

View File

@@ -767,7 +767,7 @@ pci_add_card(uint8_t add_type, uint8_t (*read)(int func, int addr, void *priv),
if (next_pci_card < PCI_CARDS_NUM) {
dev = &pci_card_descs[next_pci_card];
dev->type = add_type;
dev->type = add_type | PCI_ADD_STRICT;
dev->read = read;
dev->write = write;
dev->priv = priv;