提交 90cb09d9 编写于 作者: A Andreas Färber

ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().
Signed-off-by: NAndreas Färber <afaerber@suse.de>
Acked-by: NAlexander Graf <agraf@suse.de>
上级 57274713
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
static void ppc4xx_reset(void *opaque) 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, ...@@ -70,7 +70,7 @@ CPUPPCState *ppc4xx_init (const char *cpu_model,
tb_clk->opaque = env; tb_clk->opaque = env;
ppc_dcr_init(env, NULL, NULL); ppc_dcr_init(env, NULL, NULL);
/* Register qemu callbacks */ /* Register qemu callbacks */
qemu_register_reset(ppc4xx_reset, env); qemu_register_reset(ppc4xx_reset, cpu);
return env; return env;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册