target/ppc: reset reservation in do_rfi()
PATCH 1/1 target/ppc: reset reservation in do_rfi()
For transitioning back to userspace after the interrupt.
Suggested-by Richard Henderson <[email protected]>
Signed-off-by Nikunj A Dadhania <[email protected]>
--- target/ppc/excp_helper.c | 3 +++ 1 file changed, 3 insertions(+)
target/ppc/excp_helper.c +3 -0
@@ -995,6 +995,9 @@ static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr)*/ cs->interrupt_request |=CPU_INTERRUPT_EXITTB ; +/* Reset the reservation */ + env->reserve_addr =-1 ; +/* Context synchronizing: check if TCG TLB needs flush */ check_tlb_flush (env, false); }
Signature · 1 line
2.9.3
David Gibson
AppliedQuoted 4 lines · Nikunj A Dadhania
For transitioning back to userspace after the interrupt.
Suggested-by Richard Henderson <[email protected]>Signed-off-by Nikunj A Dadhania <[email protected]>
Applied to ppc-for-2.10. thanks.
Quoted 18 lines
--- target/ppc/excp_helper.c | 3 +++ 1 file changed, 3 insertions(+)target/ppc/excp_helper.c +3
-0@@ -995,6 +995,9 @@ static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr)*/ cs->interrupt_request |=CPU_INTERRUPT_EXITTB ; +/* Reset the reservation */ + env->reserve_addr =-1 ; +/* Context synchronizing: check if TCG TLB needs flush */ check_tlb_flush (env, false); }
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson