From: Aurelien Jarno <aurelien@aurel32.net>
To: Richard Henderson <rth@twiddle.net>
Cc: qemu-devel@nongnu.org, Eric Bischoff <ebischoff@nerim.net>
Subject: Re: [Qemu-devel] [PATCH v3 4/6] target/s390x: Implement LOAD PAIR DISJOINT
Date: Wed, 10 May 2017 12:16:20 +0200 [thread overview]
Message-ID: <20170510101620.q3mob35aivxz324g@aurel32.net> (raw)
In-Reply-To: <20170509180715.22910-5-rth@twiddle.net>
On 2017-05-09 11:07, Richard Henderson wrote:
> From: Eric Bischoff <ebischoff@nerim.net>
>
> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
> Signed-off-by: Eric Bischoff <ebischoff@nerim.net>
> Message-Id: <20170228120134.7921-1-ebischoff@suse.com>
> [rth: Combine the two via insn->data; free the address temps.]
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
> target/s390x/insn-data.def | 4 +++-
> target/s390x/translate.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 45 insertions(+), 1 deletion(-)
[snip]
> diff --git a/target/s390x/translate.c b/target/s390x/translate.c
> index 2b66a4e..8de0177 100644
> --- a/target/s390x/translate.c
> +++ b/target/s390x/translate.c
> @@ -2559,6 +2559,7 @@ static ExitStatus op_lctlg(DisasContext *s, DisasOps *o)
> tcg_temp_free_i32(r3);
> return NO_EXIT;
> }
> +
> static ExitStatus op_lra(DisasContext *s, DisasOps *o)
> {
> check_privileged(s);
> @@ -2759,6 +2760,31 @@ static ExitStatus op_lm64(DisasContext *s, DisasOps *o)
> return NO_EXIT;
> }
>
> +static ExitStatus op_lpd(DisasContext *s, DisasOps *o)
> +{
> + TCGv_i64 a1, a2;
> + TCGMemOp mop = s->insn->data;
> +
> + /* In a parallel context, stop the world and single step. */
> + if (parallel_cpus) {
> + potential_page_fault(s);
> + gen_helper_exit_atomic(cpu_env);
> + return EXIT_NORETURN;
> + }
One small additional comment about this patch I haven't spotted at the
first review. The exit_atomic helper is properly restoring the CPU state
passing the return address to cpu_loop_exit_atomic, so I believe the
potential_page_fault call is not necessary. That said, it doesn't hurt
either.
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
next prev parent reply other threads:[~2017-05-10 10:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 18:07 [Qemu-devel] [PATCH v3 0/6] target/s390x patches Richard Henderson
2017-05-09 18:07 ` [Qemu-devel] [PATCH v3 1/6] target/s390x: Implement STORE FACILITIES LIST EXTENDED Richard Henderson
2017-05-09 18:38 ` Aurelien Jarno
2017-05-09 18:07 ` [Qemu-devel] [PATCH v3 2/6] target/s390x: Implement LOAD PROGRAM PARAMETER Richard Henderson
2017-05-09 18:07 ` [Qemu-devel] [PATCH v3 3/6] target/s390x: Diagnose specification exception for atomics Richard Henderson
2017-05-10 10:39 ` Philippe Mathieu-Daudé
2017-05-09 18:07 ` [Qemu-devel] [PATCH v3 4/6] target/s390x: Implement LOAD PAIR DISJOINT Richard Henderson
2017-05-10 10:16 ` Aurelien Jarno [this message]
2017-05-10 17:13 ` Éric Bischoff
2017-05-10 17:43 ` Richard Henderson
2017-05-10 18:24 ` Aurelien Jarno
2017-05-09 18:07 ` [Qemu-devel] [PATCH v3 5/6] target/s390x: Use atomic operations for COMPARE SWAP Richard Henderson
2017-05-10 3:51 ` Thomas Huth
2017-05-10 14:07 ` Richard Henderson
2017-05-09 18:07 ` [Qemu-devel] [PATCH v3 6/6] target/s390x: Use atomic operations for LOAD AND OP Richard Henderson
2017-05-09 18:32 ` [Qemu-devel] [PATCH v3 0/6] target/s390x patches no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170510101620.q3mob35aivxz324g@aurel32.net \
--to=aurelien@aurel32.net \
--cc=ebischoff@nerim.net \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.