target-ppc: Initialize OpenPIC properly
commitd14ed2548c3163cdb316eb4da36cd7a6a8975da4
authorAlexander Graf <agraf@suse.de>
Fri, 18 Dec 2009 22:37:26 +0000 (18 23:37 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 19 Dec 2009 15:04:52 +0000 (19 16:04 +0100)
tree5c155c9c61bf7114a6bc9ef19336b648e29b9a75
parent0aced4e219f81ab583b2d99663e13c3278d163ea
target-ppc: Initialize OpenPIC properly

When lowering an IRQ line, we search for the line we're supposed to lower.

Usually we run into an optimization there that queues up interrupts. This
queue ends with -1. Unfortunately we didn't set the first item to -1.

This patch fixes this, making interrupts work on PPC64.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/openpic.c