xive: Link "cpu" property to XiveTCTX::cs pointer
commit411c2a619e713bbfa175e72ed6d754a673e299fc
authorGreg Kurz <groug@kaod.org>
Fri, 15 Nov 2019 15:55:26 +0000 (15 16:55 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree4bcf0c7f149e7251e2850f998db35410d2f579bb
parent719ed8461fdca7ffe67778014be110c8e6dd4fb3
xive: Link "cpu" property to XiveTCTX::cs pointer

The TCTX object has both a pointer and a "cpu" property pointing to the
vCPU object. Confusing bugs could arise if these ever go out of sync.

Change the property definition so that it explicitely sets the pointer.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157383332669.165747.2484056603605646820.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xive.c