diff options
Diffstat (limited to 'hw/hppa')
-rw-r--r-- | hw/hppa/dino.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 81053b5..5b82c94 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -496,7 +496,7 @@ static void dino_set_irq(void *opaque, int irq, int level) static int dino_pci_map_irq(PCIDevice *d, int irq_num) { - int slot = d->devfn >> 3; + int slot = PCI_SLOT(d->devfn); assert(irq_num >= 0 && irq_num <= 3); |