summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorNikunj A Dadhania2017-05-15 10:35:09 +0200
committerDavid Gibson2017-05-24 03:39:52 +0200
commita8b73734219802e226a5444ffd84d07a085edd28 (patch)
treecc2c431903b510be1ec8459497df4576d1b55385 /target
parentMerge remote-tracking branch 'jasowang/tags/net-pull-request' into staging (diff)
downloadqemu-a8b73734219802e226a5444ffd84d07a085edd28.tar.gz
qemu-a8b73734219802e226a5444ffd84d07a085edd28.tar.xz
qemu-a8b73734219802e226a5444ffd84d07a085edd28.zip
target/ppc: reset reservation in do_rfi()
For transitioning back to userspace after the interrupt. Suggested-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target')
-rw-r--r--target/ppc/excp_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index a6bcb47aa2..9cb2123187 100644
--- a/target/ppc/excp_helper.c
+++ b/target/ppc/excp_helper.c
@@ -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);
}