diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-03 05:43:05 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-04 23:00:43 +0200 |
commit | 397b457d869fbd5bbe2793c3066bb6bc92845932 (patch) | |
tree | 9e36cc219a88f03ca9a271f72d49f294b62370b5 /target-ppc/helper.c | |
parent | fa156e5127d367987289e90563cad4c4ca83a2d8 (diff) | |
download | qemu-397b457d869fbd5bbe2793c3066bb6bc92845932.zip qemu-397b457d869fbd5bbe2793c3066bb6bc92845932.tar.gz qemu-397b457d869fbd5bbe2793c3066bb6bc92845932.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index e97e496..42f66e8 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; } |