summaryrefslogtreecommitdiffstats
path: root/target/ppc/cpu-models.c
diff options
context:
space:
mode:
authorDavid Gibson2017-06-13 10:09:08 +0200
committerDavid Gibson2017-06-30 06:03:31 +0200
commit66d5c492dd3a92fbb6f01f3957fbe3fe5a18613e (patch)
treef61ad5d5e8d6be7c5e4f4367033d11308c0e3bc4 /target/ppc/cpu-models.c
parentpseries: Move CPU compatibility property to machine (diff)
downloadqemu-66d5c492dd3a92fbb6f01f3957fbe3fe5a18613e.tar.gz
qemu-66d5c492dd3a92fbb6f01f3957fbe3fe5a18613e.tar.xz
qemu-66d5c492dd3a92fbb6f01f3957fbe3fe5a18613e.zip
pseries: Reset CPU compatibility mode
Currently, the CPU compatibility mode is set when the cpu is initialized, then again when the guest negotiates features. This means if a guest negotiates a compatibility mode, then reboots, that compatibility mode will be retained across the reset. Usually that will get overridden when features are negotiated on the next boot, but it's still not really correct. This patch moves the initial set up of the compatibility mode from cpu init to reset time. The mode *is* retained if the reboot was caused by the feature negotiation (it might be important in that case, though it's unlikely). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Tested-by: Andrea Bolognani <abologna@redhat.com>
Diffstat (limited to 'target/ppc/cpu-models.c')
0 files changed, 0 insertions, 0 deletions