summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuraj Jitindar Singh2018-10-08 05:25:38 +0200
committerDavid Gibson2018-11-08 03:08:35 +0100
commit56de52cad954a94530953bf979007db84c5f4dbb (patch)
tree1b72b6bec38c1f7bce285bcc5ed2b9df2b76da60
parentThis patch fixes processing of rfi instructions in icount mode. (diff)
downloadqemu-56de52cad954a94530953bf979007db84c5f4dbb.tar.gz
qemu-56de52cad954a94530953bf979007db84c5f4dbb.tar.xz
qemu-56de52cad954a94530953bf979007db84c5f4dbb.zip
target/ppc: Add one reg id for ptcr
The ptcr (partition table control register) is used to store the address and size of the partition table. For nested kvm-hv we have a level 1 guest register the location of it's partition table with the hypervisor. Thus to support migration we need to be able to read this out of kvm and restore it post migration. Add the one reg id for the ptcr. Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--target/ppc/translate_init.inc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c
index 9a2d4a9835..168d0cec28 100644
--- a/target/ppc/translate_init.inc.c
+++ b/target/ppc/translate_init.inc.c
@@ -8214,11 +8214,11 @@ static void gen_spr_power9_mmu(CPUPPCState *env)
{
#if !defined(CONFIG_USER_ONLY)
/* Partition Table Control */
- spr_register_hv(env, SPR_PTCR, "PTCR",
- SPR_NOACCESS, SPR_NOACCESS,
- SPR_NOACCESS, SPR_NOACCESS,
- &spr_read_generic, &spr_write_ptcr,
- 0x00000000);
+ spr_register_kvm_hv(env, SPR_PTCR, "PTCR",
+ SPR_NOACCESS, SPR_NOACCESS,
+ SPR_NOACCESS, SPR_NOACCESS,
+ &spr_read_generic, &spr_write_ptcr,
+ KVM_REG_PPC_PTCR, 0x00000000);
#endif
}