diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-04 17:46:13 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-04 23:00:44 +0200 |
commit | 5c3e735f9b46582828d5d0606174ab1f487da4d0 (patch) | |
tree | 48caaebb18f9fd6a1670ebb13778c20d001d166a /hw/ppc_prep.c | |
parent | a9bf3df02114563902cd9aa585457f912434e3bc (diff) | |
download | qemu-5c3e735f9b46582828d5d0606174ab1f487da4d0.tar.gz qemu-5c3e735f9b46582828d5d0606174ab1f487da4d0.tar.bz2 qemu-5c3e735f9b46582828d5d0606174ab1f487da4d0.zip |
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>
Diffstat (limited to 'hw/ppc_prep.c')
-rw-r--r-- | hw/ppc_prep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 0b880a5c7c..be2b26830d 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -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 */ |