[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 03/19] target-ppc: move back cpu_exec_init() to init
From: |
Laurent Vivier |
Subject: |
[Qemu-ppc] [PATCH 03/19] target-ppc: move back cpu_exec_init() to init |
Date: |
Wed, 5 Oct 2016 21:38:37 +0200 |
We have now the cpu_exec_realize() in realize,
so the init part must be in init
CC: Alexander Graf <address@hidden>
CC: address@hidden
Signed-off-by: Laurent Vivier <address@hidden>
---
target-ppc/translate_init.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 5e84e65..5eb2d3a 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -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;
--
2.7.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-ppc] [PATCH 03/19] target-ppc: move back cpu_exec_init() to init,
Laurent Vivier <=