summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater2018-06-20 12:24:13 +0200
committerDavid Gibson2018-07-03 01:56:51 +0200
commita028dd423ee6dfd091a8c63028240832bf10f671 (patch)
tree6c8b218a1baa929fb7bb27a167d2288b71f9e9d9 /include
parentsam460ex: Fix sam460ex device tree when booting the Linux kernel (diff)
downloadqemu-a028dd423ee6dfd091a8c63028240832bf10f671.tar.gz
qemu-a028dd423ee6dfd091a8c63028240832bf10f671.tar.xz
qemu-a028dd423ee6dfd091a8c63028240832bf10f671.zip
ppc/xics: introduce ICP DeviceRealize and DeviceReset handlers
This changes the ICP realize and reset handlers in DeviceRealize and DeviceReset handlers. parent handlers are now called from the inheriting classes which is a cleaner object pattern. 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 6cebff47a7..4b04b295a7 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -65,10 +65,11 @@ typedef struct XICSFabric XICSFabric;
struct ICPStateClass {
DeviceClass parent_class;
- void (*realize)(ICPState *icp, Error **errp);
+ DeviceRealize parent_realize;
+ DeviceReset parent_reset;
+
void (*pre_save)(ICPState *icp);
int (*post_load)(ICPState *icp, int version_id);
- void (*reset)(ICPState *icp);
void (*synchronize_state)(ICPState *icp);
};