]> git.proxmox.com Git - qemu.git/commitdiff
mac99: fix segmentation fault on startup
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 11 Oct 2009 19:06:15 +0000 (21:06 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 11 Oct 2009 19:06:15 +0000 (21:06 +0200)
Don't assign the same devfn to two different PCI devices.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/unin_pci.c

index 0ad0cd39110fd0999e95cb0a1f5f04e9b7cf4098..ca8d9a5c0013d51b4720dfcbddaeb0d32370c9f6 100644 (file)
@@ -234,7 +234,7 @@ PCIBus *pci_pmac_init(qemu_irq *pic)
     cpu_register_physical_memory(0xf0c00000, 0x1000, pci_mem_data);
 
     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_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_AGP);
     d->config[0x08] = 0x00; // revision