From 723c4229ed3bb99505034cd506c3cc8b564fdd42 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 10 May 2024 00:33:15 +0200 Subject: [PATCH] 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. --- src/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pci.c b/src/pci.c index 15a119cb7..13b780050 100644 --- a/src/pci.c +++ b/src/pci.c @@ -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;