Revision 8c9d7f83
b/hw/prep_pci.c | ||
---|---|---|
117 | 117 |
&PPC_PCIIO_readl, |
118 | 118 |
}; |
119 | 119 |
|
120 |
/* Don't know if this matches real hardware, but it agrees with OHW. */ |
|
121 | 120 |
static int prep_map_irq(PCIDevice *pci_dev, int irq_num) |
122 | 121 |
{ |
123 | 122 |
return (irq_num + (pci_dev->devfn >> 3)) & 1; |
... | ... | |
125 | 124 |
|
126 | 125 |
static void prep_set_irq(qemu_irq *pic, int irq_num, int level) |
127 | 126 |
{ |
128 |
qemu_set_irq(pic[irq_num ? 11 : 9], level);
|
|
127 |
qemu_set_irq(pic[(irq_num & 1) ? 11 : 9] , level);
|
|
129 | 128 |
} |
130 | 129 |
|
131 | 130 |
PCIBus *pci_prep_init(qemu_irq *pic) |
Also available in: Unified diff