xics: Link ICP_PROP_CPU property to ICPState::cs pointer
commite388d66b407366e09228fa60b783cea1ac828066
authorGreg Kurz <groug@kaod.org>
Sun, 17 Nov 2019 23:20:47 +0000 (18 00:20 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree7fd59b59ffd0bd30b58cf6a2a0d975c9554da21b
parentb4a378a7c5de55333afa4d71b14c18c85b3cba6b
xics: Link ICP_PROP_CPU property to ICPState::cs pointer

The ICP object has both a pointer and an ICP_PROP_CPU property pointing
to the cpu. 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: <157403284709.409804.16142099083325945141.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