aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2018-06-25 11:17:14 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2018-07-03 09:56:51 +1000
commit0a647b76dbf29e6a20c328cd8676a1ca49526f09 (patch)
treeca5a3b68cbb26a4adfa33f78817c1476691bd0d2 /include
parenta028dd423ee6dfd091a8c63028240832bf10f671 (diff)
downloadqemu-0a647b76dbf29e6a20c328cd8676a1ca49526f09.zip
qemu-0a647b76dbf29e6a20c328cd8676a1ca49526f09.tar.gz
qemu-0a647b76dbf29e6a20c328cd8676a1ca49526f09.tar.bz2
ppc/xics: introduce a parent_realize in ICSStateClass
This makes possible to move the common ICSState code of the realize handlers in the ics-base class. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 4b04b29..44e96e6 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -115,7 +115,8 @@ struct PnvICPState {
struct ICSStateClass {
DeviceClass parent_class;
- void (*realize)(ICSState *s, Error **errp);
+ DeviceRealize parent_realize;
+
void (*pre_save)(ICSState *s);
int (*post_load)(ICSState *s, int version_id);
void (*reject)(ICSState *s, uint32_t irq);