PCI now checks the correct flag to determine whether or not to return bit 31 set, fixes #3615.

This commit is contained in:
OBattler
2023-08-22 16:55:00 +02:00
parent ed675ca9cd
commit 7563c7625e

View File

@@ -616,7 +616,7 @@ pci_readl(uint16_t port, UNUSED(void *priv))
/* No split here, actual 32-bit access. */
if (pci_flags & FLAG_MECHANISM_1) {
ret = pci_index | (pci_func << 8) | (pci_card << 11) | (pci_bus << 16);
if (pci_flags & FLAG_CONFIG_IO_ON)
if (pci_flags & FLAG_CONFIG_M1_IO_ON)
ret |= PCI_ENABLED;
pci_log("PCI: [RL] Mechanism #1 port 0CF8 = %08X\n", ret);