aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-03 05:43:05 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-04 23:00:43 +0200
commit397b457d869fbd5bbe2793c3066bb6bc92845932 (patch)
tree9e36cc219a88f03ca9a271f72d49f294b62370b5 /target-ppc/helper.c
parentfa156e5127d367987289e90563cad4c4ca83a2d8 (diff)
target-ppc: Let cpu_ppc_init() return PowerPCCPU
Adapt e500 mpc8544ds machine accordingly. Turn cpu_init() into a static inline function returning CPUPPCState for backwards compatibility. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index e97e49640d..42f66e8948 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -3191,7 +3191,7 @@ void cpu_state_reset(CPUPPCState *env)
cpu_reset(ENV_GET_CPU(env));
}
-CPUPPCState *cpu_ppc_init (const char *cpu_model)
+PowerPCCPU *cpu_ppc_init(const char *cpu_model)
{
PowerPCCPU *cpu;
CPUPPCState *env;
@@ -3213,5 +3213,5 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model)
qemu_init_vcpu(env);
- return env;
+ return cpu;
}