ppc/pnv: Add an "nr-threads" property to the base chip class
commit764f9b2559f0dac7d24da2920445a42a5edf158b
authorGreg Kurz <groug@kaod.org>
Mon, 6 Jan 2020 14:56:39 +0000 (6 15:56 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 8 Jan 2020 00:01:59 +0000 (8 11:01 +1100)
treec3ac869213fd8192914e3c9a778225f81017b79b
parent53981dd50566288904c03e5e7d31b43bc587cb37
ppc/pnv: Add an "nr-threads" property to the base chip class

Set it at chip creation and forward it to the cores. This allows to drop
a call to qdev_get_machine().

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20200106145645.4539-7-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
include/hw/ppc/pnv.h