ppc/pnv: Link "chip" property to PnvXive::chip pointer
commit7ae54cc3a00d28cfb0bc4f377faf157b2e55b25c
authorGreg Kurz <groug@kaod.org>
Fri, 15 Nov 2019 15:56:05 +0000 (15 16:56 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree75e61e459df413a5ebf0b99b03b2d51e963bc805
parent158e17a65e1ad0f2bd1e300c2f30f9481901a485
ppc/pnv: Link "chip" property to PnvXive::chip pointer

The XIVE object has both a pointer and a "chip" property pointing to the
chip 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: <157383336564.165747.10250365296928442882.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/pnv_xive.c
hw/ppc/pnv.c