pseries: Fix incorrect initialization of interrupt controller
commit044f4c8b0ee90290b6cbbc616c4be3c8aeffcaab
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 12 Nov 2012 16:46:49 +0000 (12 16:46 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:53 +0000 (14 13:12 +0100)
treeae473a71365047212c6b3a0600433e990b87c41c
parent1c97e303d4ea80a2691334b0febe87a50660f99d
pseries: Fix incorrect initialization of interrupt controller

Currently in the reset code for the XICS interrupt controller, we
initialize the pending_priority field to 0 (most favored, by XICS
convention).  This is incorrect, since there is no pending interrupt, it
should be set to least favored - 0xff.  At the moment our XICS
implementation doesn't get hurt by this edge case, but it does confuse the
upcoming kernel XICS implementation.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/xics.c