spapr/irq: initialize the IRQ device only once
commitcf435df697e50db5ed1ec60e5efe639123a03154
authorCédric Le Goater <clg@kaod.org>
Mon, 13 May 2019 08:42:43 +0000 (13 10:42 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 May 2019 01:39:46 +0000 (29 11:39 +1000)
treefc4d4e002d5dccea14a39eea282d529dfa4429ad
parentae805ea9073bb97363d867ef081be27e2c63d782
spapr/irq: initialize the IRQ device only once

Add a check to make sure that the routine initializing the emulated
IRQ device is called once. We don't have much to test on the XICS
side, so we introduce a 'init' boolean under ICSState.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190513084245.25755-13-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive.c
hw/intc/xics_spapr.c
include/hw/ppc/xics.h