mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
0ca94b2f11
commit
60d30cff84
4 changed files with 45 additions and 45 deletions
|
@ -53,6 +53,7 @@ struct PnvCore {
|
|||
uint32_t hwid;
|
||||
uint64_t hrmor;
|
||||
|
||||
target_ulong scratch[8]; /* SPRC/SPRD indirect SCRATCH registers */
|
||||
PnvCoreTODState tod_state;
|
||||
|
||||
PnvChip *chip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue