diff options
| author | Cédric Le Goater | 2019-05-13 10:42:43 +0200 |
|---|---|---|
| committer | David Gibson | 2019-05-29 03:39:46 +0200 |
| commit | cf435df697e50db5ed1ec60e5efe639123a03154 (patch) | |
| tree | fc4d4e002d5dccea14a39eea282d529dfa4429ad /include/hw | |
| parent | spapr/irq: introduce a spapr_irq_init_device() helper (diff) | |
| download | qemu-cf435df697e50db5ed1ec60e5efe639123a03154.tar.gz qemu-cf435df697e50db5ed1ec60e5efe639123a03154.tar.xz qemu-cf435df697e50db5ed1ec60e5efe639123a03154.zip | |
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>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/ppc/xics.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index eb65ad7e43..d6f8e4c4c2 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -119,6 +119,7 @@ struct ICSState { uint32_t offset; ICSIRQState *irqs; XICSFabric *xics; + bool init; /* sPAPR ICS device initialized */ }; #define ICS_PROP_XICS "xics" |
