ppc/pnv: add a PnvCore object
commitd2fd9612eedfbfda8461d1a5f897546e3c457abb
authorCédric Le Goater <clg@kaod.org>
Sat, 22 Oct 2016 09:46:39 +0000 (22 11:46 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:25 +0000 (28 09:38 +1100)
treeeca554a945701223e3c1a087b6e6dcce5f634ddf
parent631adaff31d9e127fecccb4a811c20ae13cd7194
ppc/pnv: add a PnvCore object

This is largy inspired by sPAPRCPUCore with some simplification, no
hotplug for instance. A set of PnvCore objects is added to the PnvChip
and the device tree is populated looping on these cores.

Real HW cpu ids are now generated depending on the chip cpu model, the
chip id and a core mask. The id is propagated to the CPU object, using
properties, to set the SPR_PIR (Processor Identification Register)

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/Makefile.objs
hw/ppc/pnv.c
hw/ppc/pnv_core.c [new file with mode: 0644]
include/hw/ppc/pnv.h
include/hw/ppc/pnv_core.h [new file with mode: 0644]