Skip to content
Snippets Groups Projects
Commit 90d6b807 authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

mac99: fix segmentation fault on startup


Don't assign the same devfn to two different PCI devices.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent babd03fd
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,7 @@ PCIBus *pci_pmac_init(qemu_irq *pic) ...@@ -234,7 +234,7 @@ PCIBus *pci_pmac_init(qemu_irq *pic)
cpu_register_physical_memory(0xf0c00000, 0x1000, pci_mem_data); cpu_register_physical_memory(0xf0c00000, 0x1000, pci_mem_data);
d = pci_register_device(s->bus, "Uni-north AGP", sizeof(PCIDevice), d = pci_register_device(s->bus, "Uni-north AGP", sizeof(PCIDevice),
11 << 3, NULL, NULL); 12 << 3, NULL, NULL);
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE); pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_AGP); pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_AGP);
d->config[0x08] = 0x00; // revision d->config[0x08] = 0x00; // revision
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment