ppc/pnv: add a PIR handler to PnvChip
commit631adaff31d9e127fecccb4a811c20ae13cd7194
authorCédric Le Goater <clg@kaod.org>
Sat, 22 Oct 2016 09:46:38 +0000 (22 11:46 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:25 +0000 (28 09:38 +1100)
treef1b9498ab9ca86aede63c40d2ccd7149923a340c
parent397a79e7575c4ea98507ff9d1d2629b58725d484
ppc/pnv: add a PIR handler to PnvChip

The Processor Identification Register (PIR) is a register that holds a
processor identifier which is used for bus transactions (XSCOM) and
for processor differentiation in multiprocessor systems. It also used
in the interrupt vector entries (IVE) to identify the thread serving
the interrupts.

P9 and P8 have some differences in the CPU PIR encoding.

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