]> xenbits.xensource.com Git - qemu-xen.git/commit
target/ppc: Add stub implementation of the PSSCR
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Aug 2017 05:09:35 +0000 (15:09 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 9 Aug 2017 01:46:44 +0000 (11:46 +1000)
commitb8af5b2d5f67b0e1b274f8532f42a47bfe46ea3b
tree1a6be4a6e649bfd822b25420628ad864eaaa7917
parent650f3287abb7c6124b7fb0f4a2330246fe2d4da2
target/ppc: Add stub implementation of the PSSCR

The PSSCR register added in POWER9 controls certain power saving mode
behaviours.  Mostly, it's not relevant to TCG, however because qemu
doesn't know about it yet, it doesn't synchronize the state with KVM,
and thus it doesn't get migrated.

To fix that, this adds a minimal stub implementation of the register.
This isn't complete, even to the extent that an implementation is
possible in TCG, just enough to get migration working.  We need to
come back later and at least properly filter the various fields in the
register based on privilege level.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
target/ppc/cpu.h
target/ppc/translate_init.c