diff options
author | Cédric Le Goater | 2018-04-24 13:30:42 +0200 |
---|---|---|
committer | David Gibson | 2018-05-04 01:56:27 +0200 |
commit | 4a7518e0fdaa20525730ae0709a4afa0960a6c67 (patch) | |
tree | b90bf71c3c9a221388dd2e59a735faf6fccac278 /target/ppc/translate.c | |
parent | target/ppc: return a nil HPT base address on sPAPR machines (diff) | |
download | qemu-4a7518e0fdaa20525730ae0709a4afa0960a6c67.tar.gz qemu-4a7518e0fdaa20525730ae0709a4afa0960a6c67.tar.xz qemu-4a7518e0fdaa20525730ae0709a4afa0960a6c67.zip |
target/ppc: add basic support for PTCR on POWER9
The Partition Table Control Register (PTCR) is a hypervisor privileged
SPR. It contains the host real address of the Partition Table and its
size.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/translate.c')
-rw-r--r-- | target/ppc/translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 3beaa1e2f0..2a4140f420 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -7136,6 +7136,9 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, if (env->spr_cb[SPR_SDR1].name) { /* SDR1 Exists */ cpu_fprintf(f, " SDR1 " TARGET_FMT_lx " ", env->spr[SPR_SDR1]); } + if (env->spr_cb[SPR_PTCR].name) { /* PTCR Exists */ + cpu_fprintf(f, " PTCR " TARGET_FMT_lx " ", env->spr[SPR_PTCR]); + } cpu_fprintf(f, " DAR " TARGET_FMT_lx " DSISR " TARGET_FMT_lx "\n", env->spr[SPR_DAR], env->spr[SPR_DSISR]); break; |