xics: Link ICS_PROP_XICS property to ICSState::xics pointer
commitb015a9809427c87940447e5b76a5b73a0bf27d7c
authorGreg Kurz <groug@kaod.org>
Sun, 17 Nov 2019 23:20:36 +0000 (18 00:20 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree337897be9c51a38459719730331b3feaa30118a4
parent7ae54cc3a00d28cfb0bc4f377faf157b2e55b25c
xics: Link ICS_PROP_XICS property to ICSState::xics pointer

The ICS object has both a pointer and an ICS_PROP_XICS property pointing
to the XICS fabric. Confusing bugs could arise if these ever go out of
sync.

Change the property definition so that it explicitely sets the pointer.
The property isn't optional : not being able to set the link is a bug
and QEMU should rather abort than exit in this case.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157403283596.409804.17347207690271971987.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics.c
hw/ppc/pnv_psi.c
hw/ppc/spapr_irq.c