ppc/pnv: Improve pervasive topology calculation for big-core
commit9940412ae4ae2d4971959c13311ba8d822974452
authorCaleb Schlossin <calebs@linux.vnet.ibm.com>
Tue, 27 Feb 2024 20:36:23 +0000 (27 14:36 -0600)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (13 02:47 +1000)
treeaeeea6c94ebb348eaa93b57838d40371099cee3f
parent0b8893236ef11dd26be9290156ea34cb122e4dbe
ppc/pnv: Improve pervasive topology calculation for big-core

Big (SMT8) cores have a complicated function to map the core, thread ID
to pervasive topology (PIR). Fix this for power8, power9, and power10.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Caleb Schlossin <calebs@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv.c
hw/ppc/pnv_core.c
include/hw/ppc/pnv_chip.h
include/hw/ppc/pnv_core.h
target/ppc/misc_helper.c