target/ppc: Move SPR indirect registers into PnvCore
authorNicholas Piggin <npiggin@gmail.com>
Sun, 26 May 2024 11:24:00 +0000 (21:24 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000 (09:21 +1000)
commit60d30cff8472c0bf05a40b0f55221fb4efb768e2
tree5f88c3fc969ee90d98d9be9104af4af6344aa928
parent0ca94b2f11223d41258e6a7a046e5ccde831de46
target/ppc: Move SPR indirect registers into PnvCore

SPRC/SPRD were recently added to all BookS CPUs supported, but
they are only tested on POWER9 and POWER10, so restrict them to
those CPUs.

SPR indirect scratch registers presently replicated per-CPU like
SMT SPRs, but the PnvCore is a better place for them since they
are restricted to P9/P10.

Also add SPR indirect read access to core thread state for POWER9
since skiboot accesses that when booting to check for big-core
mode.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
include/hw/ppc/pnv_core.h
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/misc_helper.c