diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-04 19:39:23 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-04 23:00:45 +0200 |
commit | c356a1bcc0b609125cb540dae3796a3618441300 (patch) | |
tree | 3600eca020e7ef5bf3e1ecfc480ec02be4809b54 /cpu-exec.c | |
parent | f8031482d72b61b86b3f9165d50303fba18480d2 (diff) | |
download | hqemu-c356a1bcc0b609125cb540dae3796a3618441300.zip hqemu-c356a1bcc0b609125cb540dae3796a3618441300.tar.gz |
cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC
CPUState will be needed for all targets in the future, so place it into
the main variable declaration block.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -184,6 +184,9 @@ volatile sig_atomic_t exit_request; int cpu_exec(CPUArchState *env) { +#ifdef TARGET_PPC + CPUState *cpu = ENV_GET_CPU(env); +#endif int ret, interrupt_request; TranslationBlock *tb; uint8_t *tc_ptr; @@ -341,7 +344,7 @@ int cpu_exec(CPUArchState *env) } #elif defined(TARGET_PPC) if ((interrupt_request & CPU_INTERRUPT_RESET)) { - cpu_state_reset(env); + cpu_reset(cpu); } if (interrupt_request & CPU_INTERRUPT_HARD) { ppc_hw_interrupt(env); |