mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
fa156e5127
commit
397b457d86
3 changed files with 17 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue