diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-21 19:41:59 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-03-14 22:20:24 +0100 |
commit | fc0b2c0f1a8eb679d28763832f3223259bf37b34 (patch) | |
tree | 405c22ba39983f138505e7da42be118019dd9acb /cpu-exec.c | |
parent | 418ba9e5d6849ef2e8512d8853628ce4bf37937a (diff) | |
download | hqemu-fc0b2c0f1a8eb679d28763832f3223259bf37b34.zip hqemu-fc0b2c0f1a8eb679d28763832f3223259bf37b34.tar.gz |
PPC: 405: Use proper CPU reset
On ppc405ep there is a register that allows for software to reset the
core, but not the whole system. Implement this reset using a reset
interrupt.
This gets rid of a bunch of #if 0'ed code.
Reported-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -339,11 +339,9 @@ int cpu_exec(CPUState *env) } } #elif defined(TARGET_PPC) -#if 0 if ((interrupt_request & CPU_INTERRUPT_RESET)) { cpu_reset(env); } -#endif if (interrupt_request & CPU_INTERRUPT_HARD) { ppc_hw_interrupt(env); if (env->pending_interrupts == 0) |