Message ID | 559D71BB.50202@suse.de |
---|---|
State | New |
Headers | show |
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 2b72f2d..82854a8 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -8927,12 +8927,15 @@ static void ppc_cpu_realizefn(DeviceState *dev, Error **errp) smp_threads, kvm_enabled() ? "KVM" : "TCG"); return; } +#endif cpu_exec_init(&cpu->env, &local_err); if (local_err != NULL) { error_propagate(errp, local_err); return; } + +#if !defined(CONFIG_USER_ONLY) cpu->cpu_dt_id = (cs->cpu_index / smp_threads) * max_smt + (cs->cpu_index % smp_threads);