From: Stuart Yoder <stuart.yo...@freescale.com> -for KVM we always want the cpu to be that of the host system, so make that the default
-for TGC mode, the emulated cpu type should be explicitly set Signed-off-by: Stuart Yoder <stuart.yo...@freescale.com> --- hw/ppc/e500.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index b37ce9d..69dbf47 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -621,7 +621,11 @@ void ppce500_init(QEMUMachineInitArgs *args, PPCE500Params *params) /* Setup CPUs */ if (args->cpu_model == NULL) { - args->cpu_model = "e500v2_v30"; + if (kvm_enabled()) { + args->cpu_model = "host"; + } else { + args->cpu_model = "e500v2_v30"; + } } irqs = g_malloc0(smp_cpus * sizeof(qemu_irq *)); -- 1.7.9.7