diff options
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r-- | target-ppc/helper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index 7a08f4ba7..4676d50d8 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -29,7 +29,7 @@ #include "exec-all.h" #include "helper_regs.h" #include "qemu-common.h" -#include "qemu-kvm.h" +#include "kvm.h" //#define DEBUG_MMU //#define DEBUG_BATS @@ -2921,8 +2921,10 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model) env->cpu_model_str = cpu_model; cpu_ppc_register_internal(env, def); cpu_ppc_reset(env); + if (kvm_enabled()) - kvm_init_vcpu(env); + kvm_init_vcpu(env); + return env; } |