]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/ppc/machine: Add kvmppc_pvr_workaround_required() stub
authorGreg Kurz <groug@kaod.org>
Fri, 14 Jun 2019 11:09:22 +0000 (13:09 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 1 Jul 2019 23:43:58 +0000 (09:43 +1000)
This allows to drop the CONFIG_KVM guard from the code.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <156051056289.224162.15553539098911498678.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/kvm_ppc.h
target/ppc/machine.c

index e642aaaf9226e9b98aa92e6b99d2ba723184aed5..98bd7d5da6d65df4d897628a25d682cf76466630 100644 (file)
@@ -399,6 +399,11 @@ static inline int kvmppc_resize_hpt_commit(PowerPCCPU *cpu,
     return -ENOSYS;
 }
 
+static inline bool kvmppc_pvr_workaround_required(PowerPCCPU *cpu)
+{
+    return false;
+}
+
 #endif
 
 #ifndef CONFIG_KVM
index 5ad7b40f453373a1543bba4502fafd792e9e5383..e82f5de9db7cb5cd015d9b8ea89a9724a0048843 100644 (file)
@@ -378,11 +378,9 @@ static int cpu_post_load(void *opaque, int version_id)
      * receive the PVR it expects as a workaround.
      *
      */
-#if defined(CONFIG_KVM)
     if (kvmppc_pvr_workaround_required(cpu)) {
         env->spr[SPR_PVR] = env->spr_cb[SPR_PVR].default_value;
     }
-#endif
 
     env->lr = env->spr[SPR_LR];
     env->ctr = env->spr[SPR_CTR];