mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
ppc: Fix OpenPIC model
Apple uses an IBM MPIC2A without timers, it has 64 sources. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
4f7265ff17
commit
58b6283586
3 changed files with 37 additions and 1 deletions
|
@ -342,7 +342,7 @@ static void ppc_core99_init(MachineState *machine)
|
|||
pic = g_new0(qemu_irq, 64);
|
||||
|
||||
dev = qdev_create(NULL, TYPE_OPENPIC);
|
||||
qdev_prop_set_uint32(dev, "model", OPENPIC_MODEL_RAVEN);
|
||||
qdev_prop_set_uint32(dev, "model", OPENPIC_MODEL_KEYLARGO);
|
||||
qdev_init_nofail(dev);
|
||||
s = SYS_BUS_DEVICE(dev);
|
||||
pic_mem = s->mmio[0].memory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue