diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-26 20:15:14 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-26 20:15:14 +0000 |
commit | 50443c98e4149e8cde3b371f9ed60d943d95d286 (patch) | |
tree | 1d091d1e6bd2311470eab59ec5f08cae89c0f4f9 /cpu-exec.c | |
parent | 6f5a9f7e56ab8dfeacca9ac779c0661261642873 (diff) |
specialize the power save code for 7x0 CPUs
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1671 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu-exec.c b/cpu-exec.c index 5c85c1e9d8..89bf8b85e1 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -265,11 +265,11 @@ int cpu_exec(CPUState *env1) } } #elif defined(TARGET_PPC) - if (env1->msr[MSR_POW]) { + if (env1->halted) { if (env1->msr[MSR_EE] && (env1->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_TIMER))) { - env1->msr[MSR_POW] = 0; + env1->halted = 0; } else { return EXCP_HALTED; } |