ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
572747136d
commit
90cb09d9d3
@ -40,9 +40,9 @@
|
||||
|
||||
static void ppc4xx_reset(void *opaque)
|
||||
{
|
||||
CPUPPCState *env = opaque;
|
||||
PowerPCCPU *cpu = opaque;
|
||||
|
||||
cpu_state_reset(env);
|
||||
cpu_reset(CPU(cpu));
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
@ -70,7 +70,7 @@ CPUPPCState *ppc4xx_init (const char *cpu_model,
|
||||
tb_clk->opaque = env;
|
||||
ppc_dcr_init(env, NULL, NULL);
|
||||
/* Register qemu callbacks */
|
||||
qemu_register_reset(ppc4xx_reset, env);
|
||||
qemu_register_reset(ppc4xx_reset, cpu);
|
||||
|
||||
return env;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user