diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-04 17:49:38 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-04 23:00:44 +0200 |
commit | 5b2038e04965a4126a31b7b71cc315efe50a9c8e (patch) | |
tree | ef8f73783af46edd3d210b0584d65658b205a19a | |
parent | 05769733e046e01a08696bcdf0beae8284fc1662 (diff) | |
download | qemu-5b2038e04965a4126a31b7b71cc315efe50a9c8e.zip qemu-5b2038e04965a4126a31b7b71cc315efe50a9c8e.tar.gz qemu-5b2038e04965a4126a31b7b71cc315efe50a9c8e.tar.bz2 |
spapr: Pass PowerPCCPU to spapr_cpu_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>
-rw-r--r-- | hw/spapr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -505,9 +505,9 @@ static void spapr_reset(void *opaque) static void spapr_cpu_reset(void *opaque) { - CPUPPCState *env = opaque; + PowerPCCPU *cpu = opaque; - cpu_state_reset(env); + cpu_reset(CPU(cpu)); } /* pSeries LPAR / sPAPR hardware init */ @@ -570,7 +570,7 @@ static void ppc_spapr_init(ram_addr_t ram_size, /* Set time-base frequency to 512 MHz */ cpu_ppc_tb_init(env, TIMEBASE_FREQ); - qemu_register_reset(spapr_cpu_reset, env); + qemu_register_reset(spapr_cpu_reset, cpu); env->hreset_vector = 0x60; env->hreset_excp_prefix = 0; |