projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9964e96
)
target/ppc: reset reservation in do_rfi()
author
Nikunj A Dadhania
<nikunj@linux.vnet.ibm.com>
Mon, 15 May 2017 08:35:09 +0000
(14:05 +0530)
committer
David Gibson
<david@gibson.dropbear.id.au>
Wed, 24 May 2017 01:39:52 +0000
(11:39 +1000)
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>
target/ppc/excp_helper.c
patch
|
blob
|
history
diff --git
a/target/ppc/excp_helper.c
b/target/ppc/excp_helper.c
index a6bcb47aa29dd5fec8f9cd80a65f0e27f9f13528..9cb21231870c78f22c4d7a9b6bfb319612630758 100644
(file)
--- 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);
}