diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2017-05-15 14:05:09 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-05-24 11:39:52 +1000 |
commit | a8b73734219802e226a5444ffd84d07a085edd28 (patch) | |
tree | cc2c431903b510be1ec8459497df4576d1b55385 /target/ppc/excp_helper.c | |
parent | 9964e96dc9999cf7f7c936ee854a795415d19b60 (diff) | |
download | qemu-a8b73734219802e226a5444ffd84d07a085edd28.zip qemu-a8b73734219802e226a5444ffd84d07a085edd28.tar.gz qemu-a8b73734219802e226a5444ffd84d07a085edd28.tar.bz2 |
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/ppc/excp_helper.c')
-rw-r--r-- | target/ppc/excp_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c index a6bcb47..9cb2123 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); } |