aboutsummaryrefslogtreecommitdiff
path: root/hw/intc
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2016-10-18 10:06:33 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-10-28 09:36:58 +1100
commitd49c603b37e6c9d025f58c09f55d0c7cefe88987 (patch)
tree10a60d0bf9f920beb20398bb436c16b83eccdd0e /hw/intc
parent2bb0d10aebf2018d98b9413ab960dc8d728b2f5a (diff)
downloadqemu-d49c603b37e6c9d025f58c09f55d0c7cefe88987.zip
qemu-d49c603b37e6c9d025f58c09f55d0c7cefe88987.tar.gz
qemu-d49c603b37e6c9d025f58c09f55d0c7cefe88987.tar.bz2
ppc/xics: add a XICSState backlink in ICPState
The link will be used to change the API of the icp_* routines which are still using an XICSState as an argument. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/intc')
-rw-r--r--hw/intc/xics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/intc/xics.c b/hw/intc/xics.c
index c051eeb..9f2c81a 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -198,6 +198,7 @@ void xics_set_nr_servers(XICSState *xics, uint32_t nr_servers,
object_initialize(icp, sizeof(*icp), typename);
snprintf(name, sizeof(name), "icp[%d]", i);
object_property_add_child(OBJECT(xics), name, OBJECT(icp), errp);
+ icp->xics = xics;
}
}