ppc: Make uninorth interrupt swizzling identical to Grackle
commit39d97e14a151519c81955a0b82352b5596432f63
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 20 Nov 2016 14:12:31 +0000 (21 00:12 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 01:00:48 +0000 (23 12:00 +1100)
tree0da82154ebfc284a8c512bd801d3622c347e384a
parenta813fe73621e1221a094a6a744530da66817ddbc
ppc: Make uninorth interrupt swizzling identical to Grackle

It's currently broken as it uses an incorrect shift, it tries
to use the slot number but uses the top bits of the bus number
instead.

Note: Neither implementation matches what OpenBIOS ends up putting
in the device-tree either, which will have to be fixed separately.

This is not quite correct for modelling a real Mac since Apple
tend to tie all 4 interrupt lines of a slot together and have
separate interrupts for every slot and every motherboard devices
going straight to the PIC but we'll sort that out later.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/pci-host/uninorth.c