| Submitter | Edgar Iglesias |
|---|---|
| Date | Sept. 10, 2010, 7:57 p.m. |
| Message ID | <20100910195726.GC3280@laped.lan> |
| Download | mbox | patch |
| Permalink | /patch/64452/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index d342b09..c25c610 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -2075,6 +2075,8 @@ static inline void powerpc_excp(CPUState *env, int excp_model, int excp) qemu_log_mask(CPU_LOG_INT, "Raise exception at " TARGET_FMT_lx " => %08x (%02x)\n", env->nip, excp, env->error_code); msr = env->msr; + /* Taking an exception wakes up the core, clear the POW/WE bit. */ + msr &= ~((target_ulong)1 << MSR_POW); new_msr = msr; srr0 = SPR_SRR0; srr1 = SPR_SRR1;