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/cpu.h | |
| 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/cpu.h')
| -rw-r--r-- | target/ppc/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 8c9e03f54d..2f619f39d3 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1295,6 +1295,7 @@ int ppc_cpu_handle_mmu_fault(CPUState *cpu, vaddr address, int size, int rw, #if !defined(CONFIG_USER_ONLY) void ppc_store_sdr1 (CPUPPCState *env, target_ulong value); +void ppc_store_ptcr(CPUPPCState *env, target_ulong value); #endif /* !defined(CONFIG_USER_ONLY) */ void ppc_store_msr (CPUPPCState *env, target_ulong value); @@ -1585,6 +1586,7 @@ void ppc_compat_add_property(Object *obj, const char *name, #define SPR_BOOKE_GIVOR13 (0x1BC) #define SPR_BOOKE_GIVOR14 (0x1BD) #define SPR_TIR (0x1BE) +#define SPR_PTCR (0x1D0) #define SPR_BOOKE_SPEFSCR (0x200) #define SPR_Exxx_BBEAR (0x201) #define SPR_Exxx_BBTAR (0x202) |
