xics: Link ICP_PROP_XICS property to ICPState::xics pointer
authorGreg Kurz <groug@kaod.org>
Sun, 17 Nov 2019 23:20:41 +0000 (00:20 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (10:39 +1100)
commitb4a378a7c5de55333afa4d71b14c18c85b3cba6b
tree3fd75ccfcbe62367c787164002297ec5677f0e14
parentb015a9809427c87940447e5b76a5b73a0bf27d7c
xics: Link ICP_PROP_XICS property to ICPState::xics pointer

The ICP object has both a pointer and an ICP_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 explicitly 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: <157403284152.409804.17114564311521923733.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