提交 a8b73734 编写于 作者: N Nikunj A Dadhania 提交者: David Gibson

target/ppc: reset reservation in do_rfi()

For transitioning back to userspace after the interrupt.
Suggested-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
上级 9964e96d
...@@ -995,6 +995,9 @@ static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr) ...@@ -995,6 +995,9 @@ static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr)
*/ */
cs->interrupt_request |= CPU_INTERRUPT_EXITTB; cs->interrupt_request |= CPU_INTERRUPT_EXITTB;
/* Reset the reservation */
env->reserve_addr = -1;
/* Context synchronizing: check if TCG TLB needs flush */ /* Context synchronizing: check if TCG TLB needs flush */
check_tlb_flush(env, false); check_tlb_flush(env, false);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册