ppc/xics: Fix stale irq->status bits after get
commit063cb7cbc9f65ff4095df884cfcd7eaf3a160555
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Thu, 27 Apr 2017 06:31:53 +0000 (27 16:31 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 May 2017 23:45:15 +0000 (11 09:45 +1000)
tree6b8763965d15d0b80e9f8f27820f9a322ea5d60d
parent139d9023f1410591726bbe35908dcfd9d127aad2
ppc/xics: Fix stale irq->status bits after get

ics_get_kvm_state() "or"s set bits into irq->status but does not mask
out clear bits.

Correct this by initializing the IRQ status to zero before adding bits
to it.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics_kvm.c