Fix bad PCI slots for onboard Mach64 PCI devices (#6341)

This commit is contained in:
Cacodemon345
2025-10-14 01:10:34 +06:00
committed by GitHub
parent ad2499e1c0
commit 32b3f1930d

View File

@@ -4897,7 +4897,7 @@ mach64_common_init(const device_t *info)
mach64_io_set(mach64);
if (info->flags & DEVICE_PCI)
pci_add_card(PCI_ADD_NORMAL, mach64_pci_read, mach64_pci_write, mach64, &mach64->pci_slot);
pci_add_card((info->local & (1 << 19)) ? PCI_ADD_VIDEO : PCI_ADD_NORMAL, mach64_pci_read, mach64_pci_write, mach64, &mach64->pci_slot);
mach64->pci_regs[PCI_REG_COMMAND] = 3;
mach64->pci_regs[0x30] = 0x00;
@@ -4989,7 +4989,8 @@ mach64ct_init(const device_t *info)
ati_eeprom_load(&mach64->eeprom, "mach64ct.nvr", 1);
rom_init(&mach64->bios_rom, BIOS_ROMCT_PATH, 0xc0000, 0x8000, 0x7fff, 0, MEM_MAPPING_EXTERNAL);
if (!(info->local & (1 << 19)))
rom_init(&mach64->bios_rom, BIOS_ROMCT_PATH, 0xc0000, 0x8000, 0x7fff, 0, MEM_MAPPING_EXTERNAL);
mem_mapping_disable(&mach64->bios_rom.mapping);