diff options
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpu-exec.c b/cpu-exec.c index de1fff2122..9543c636c7 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -262,6 +262,16 @@ int cpu_exec(CPUState *env1) return EXCP_HALTED; } } +#elif defined(TARGET_PPC) + if (env1->msr[MSR_POW]) { + if (env1->msr[MSR_EE] && + (env1->interrupt_request & + (CPU_INTERRUPT_HARD | CPU_INTERRUPT_TIMER))) { + env1->msr[MSR_POW] = 0; + } else { + return EXCP_HALTED; + } + } #endif cpu_single_env = env1; |