@@ -9678,11 +9678,6 @@ static void ppc_cpu_realizefn(DeviceState *dev, Error **errp)
}
#endif
- cpu_exec_init(cs, &local_err);
- if (local_err != NULL) {
- error_propagate(errp, local_err);
- return;
- }
cpu_exec_realize(cs, &local_err);
if (local_err != NULL) {
error_propagate(errp, local_err);
@@ -10439,6 +10434,7 @@ static void ppc_cpu_initfn(Object *obj)
CPUPPCState *env = &cpu->env;
cs->env_ptr = env;
+ cpu_exec_init(cs, &error_abort);
env->msr_mask = pcc->msr_mask;
env->mmu_model = pcc->mmu_model;
We have now the cpu_exec_realize() in realize, so the init part must be in init CC: Alexander Graf <agraf@suse.de> CC: qemu-ppc@nongnu.org Signed-off-by: Laurent Vivier <lvivier@redhat.com> --- target-ppc/translate_init.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)