mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ppc_prep: Pass PowerPCCPU to ppc_prep_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:
+3
-3
@@ -441,9 +441,9 @@ static void cpu_request_exit(void *opaque, int irq, int level)
|
||||
|
||||
static void ppc_prep_reset(void *opaque)
|
||||
{
|
||||
CPUPPCState *env = opaque;
|
||||
PowerPCCPU *cpu = opaque;
|
||||
|
||||
cpu_state_reset(env);
|
||||
cpu_reset(CPU(cpu));
|
||||
}
|
||||
|
||||
/* PowerPC PREP hardware initialisation */
|
||||
@@ -502,7 +502,7 @@ static void ppc_prep_init (ram_addr_t ram_size,
|
||||
/* Set time-base frequency to 100 Mhz */
|
||||
cpu_ppc_tb_init(env, 100UL * 1000UL * 1000UL);
|
||||
}
|
||||
qemu_register_reset(ppc_prep_reset, env);
|
||||
qemu_register_reset(ppc_prep_reset, cpu);
|
||||
}
|
||||
|
||||
/* allocate RAM */
|
||||
|
||||
Reference in New Issue
Block a user