target/ppc: Implement SPRC/SPRD SPRs
authorNicholas Piggin <npiggin@gmail.com>
Sun, 18 Jun 2023 09:37:07 +0000 (19:37 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:34:40 +0000 (09:34 +1000)
commit2736432ffc30b74fc72858854e62b62253b685ff
treed6d658fb06ac965389ea293f2b8d6807f396cca4
parentc9d5aedf40cfa0d68a6a4c020d14f8e6116a369e
target/ppc: Implement SPRC/SPRD SPRs

This implements the POWER SPRC/SPRD SPRs, and SCRATCH0-7 registers that
can be accessed via these indirect SPRs.

SCRATCH registers only provide storage, but they are used by firmware
for low level crash and progress data, so this implementation logs
writes to the registers to help with analysis.

Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/helper.h
target/ppc/misc_helper.c
target/ppc/spr_common.h
target/ppc/translate.c