ppc_newworld: Pass PowerPCCPU to ppc_core99_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
8f8204ecb7
commit
6680988c30
@ -123,9 +123,9 @@ static target_phys_addr_t round_page(target_phys_addr_t addr)
|
|||||||
|
|
||||||
static void ppc_core99_reset(void *opaque)
|
static void ppc_core99_reset(void *opaque)
|
||||||
{
|
{
|
||||||
CPUPPCState *env = opaque;
|
PowerPCCPU *cpu = opaque;
|
||||||
|
|
||||||
cpu_state_reset(env);
|
cpu_reset(CPU(cpu));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PowerPC Mac99 hardware initialisation */
|
/* PowerPC Mac99 hardware initialisation */
|
||||||
@ -176,7 +176,7 @@ static void ppc_core99_init (ram_addr_t ram_size,
|
|||||||
|
|
||||||
/* Set time-base frequency to 100 Mhz */
|
/* Set time-base frequency to 100 Mhz */
|
||||||
cpu_ppc_tb_init(env, 100UL * 1000UL * 1000UL);
|
cpu_ppc_tb_init(env, 100UL * 1000UL * 1000UL);
|
||||||
qemu_register_reset(ppc_core99_reset, env);
|
qemu_register_reset(ppc_core99_reset, cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* allocate RAM */
|
/* allocate RAM */
|
||||||
|
Loading…
Reference in New Issue
Block a user