* [Qemu-devel] [PATCH] target/ppc: reset reservation in do_rfi()
@ 2017-05-15 8:35 Nikunj A Dadhania
2017-05-16 2:55 ` David Gibson
0 siblings, 1 reply; 2+ messages in thread
From: Nikunj A Dadhania @ 2017-05-15 8:35 UTC (permalink / raw)
To: qemu-ppc, david; +Cc: qemu-devel, rth, nikunj
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>
---
target/ppc/excp_helper.c | 3 +++
1 file changed, 3 insertions(+)
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);
}
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] target/ppc: reset reservation in do_rfi()
2017-05-15 8:35 [Qemu-devel] [PATCH] target/ppc: reset reservation in do_rfi() Nikunj A Dadhania
@ 2017-05-16 2:55 ` David Gibson
0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2017-05-16 2:55 UTC (permalink / raw)
To: Nikunj A Dadhania; +Cc: qemu-ppc, qemu-devel, rth
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
On Mon, May 15, 2017 at 02:05:09PM +0530, Nikunj A Dadhania wrote:
> 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>
Applied to ppc-for-2.10. thanks.
> ---
> target/ppc/excp_helper.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> 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);
> }
--
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-16 4:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15 8:35 [Qemu-devel] [PATCH] target/ppc: reset reservation in do_rfi() Nikunj A Dadhania
2017-05-16 2:55 ` David Gibson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.