diff options
author | Cédric Le Goater <clg@kaod.org> | 2018-04-24 13:30:42 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-05-04 09:56:27 +1000 |
commit | 4a7518e0fdaa20525730ae0709a4afa0960a6c67 (patch) | |
tree | b90bf71c3c9a221388dd2e59a735faf6fccac278 /target/ppc/mmu-book3s-v3.h | |
parent | ef0d74212ab5101565313f172b8a5baafe9cd0d2 (diff) | |
download | 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/mmu-book3s-v3.h')
-rw-r--r-- | target/ppc/mmu-book3s-v3.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/ppc/mmu-book3s-v3.h b/target/ppc/mmu-book3s-v3.h index 56095dab52..fdf80987d7 100644 --- a/target/ppc/mmu-book3s-v3.h +++ b/target/ppc/mmu-book3s-v3.h @@ -22,6 +22,12 @@ #ifndef CONFIG_USER_ONLY +/* + * Partition table definitions + */ +#define PTCR_PATB 0x0FFFFFFFFFFFF000ULL /* Partition Table Base */ +#define PTCR_PATS 0x000000000000001FULL /* Partition Table Size */ + /* Partition Table Entry Fields */ #define PATBE1_GR 0x8000000000000000 |