mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
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>
This commit is contained in:
parent
ef0d74212a
commit
4a7518e0fd
7 changed files with 71 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue