]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/ppc: Introduce 'PowerPCCPUClass::spapr_logical_pvr'
authorAditya Gupta <adityag@linux.ibm.com>
Wed, 31 Jul 2024 05:50:19 +0000 (11:20 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:10:39 +0000 (09:10 +1000)
commitc0b2f0dd6ba71cc4e31d92eb0f8571a4b37d3853
tree7cc08d4ea047d62a566d5a9fc46dc58b65829920
parentf41e7f7694b34e710b4d78947825734f0727683a
target/ppc: Introduce 'PowerPCCPUClass::spapr_logical_pvr'

Introduce 'PnvChipClass::spapr_logical_pvr' to know corresponding logical
PVR of a PowerPC CPU.
This helps to have a one-to-one mapping between PVR and logical PVR for
a CPU, and used in a later commit to handle cases where PCR of two
generations of Power chip is same, which causes regressions with
compat-mode.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
Tested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/cpu.h
target/ppc/cpu_init.c