diff options
author | Cédric Le Goater <clg@kaod.org> | 2017-02-27 15:29:17 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-01 11:23:39 +1100 |
commit | 2cd908d0add803886c310084145fecc93f080a63 (patch) | |
tree | f42a461eff00fe978e9462705da17a628e3208e3 /include | |
parent | f7759e4331ed04b2128af36efd395e55e3076406 (diff) | |
download | qemu-2cd908d0add803886c310084145fecc93f080a63.zip qemu-2cd908d0add803886c310084145fecc93f080a63.tar.gz qemu-2cd908d0add803886c310084145fecc93f080a63.tar.bz2 |
ppc/xics: use the QOM interface to resend irqs
Also change the ICPState 'xics' backlink to be a XICSFabric, this
removes the need of using qdev_get_machine() to get the QOM interface
in some of the routines.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ppc/xics.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index 094756d..b880715 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -69,6 +69,7 @@ typedef struct ICPState ICPState; typedef struct ICSStateClass ICSStateClass; typedef struct ICSState ICSState; typedef struct ICSIRQState ICSIRQState; +typedef struct XICSFabric XICSFabric; struct XICSStateClass { DeviceClass parent_class; @@ -115,7 +116,7 @@ struct ICPState { qemu_irq output; bool cap_irq_xics_enabled; - XICSState *xics; + XICSFabric *xics; }; #define TYPE_ICS_BASE "ics-base" |