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

The core 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: <157383336007.165747.1524120147081367440.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
hw/ppc/pnv_core.c