mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
committed by
David Gibson
parent
f7759e4331
commit
2cd908d0ad
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user