From: "Emilio G. Cota" <cota@braap.org>
To: Richard Henderson <rth@twiddle.net>
Cc: qemu-devel@nongnu.org, alex.bennee@linaro.org,
pbonzini@redhat.com, qemu-arm@nongnu.org,
Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] target/aarch64: exit to main loop after 'msr daifclr'
Date: Thu, 15 Jun 2017 01:19:35 -0400 [thread overview]
Message-ID: <20170615051935.GA6079@flamenco> (raw)
In-Reply-To: <f348b0f7-a8ef-0347-2312-93462d8652f6@twiddle.net>
On Wed, Jun 14, 2017 at 18:20:29 -0700, Richard Henderson wrote:
> On 06/14/2017 01:33 PM, Emilio G. Cota wrote:
> >On Wed, Jun 14, 2017 at 12:48:21 -0700, Richard Henderson wrote:
> >>Exit to cpu loop so we reevaluate cpu_arm_hw_interrupts.
> >>
> >>Cc: qemu-arm@nongnu.org
> >>Cc: Peter Maydell <peter.maydell@linaro.org>
> >>Signed-off-by: Richard Henderson <rth@twiddle.net>
> >>---
> >> target/arm/translate-a64.c | 7 ++++++-
> >> 1 file changed, 6 insertions(+), 1 deletion(-)
> >>
> >>diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
> >>index 860e279..e55547d 100644
> >>--- a/target/arm/translate-a64.c
> >>+++ b/target/arm/translate-a64.c
> >>@@ -1422,7 +1422,9 @@ static void handle_msr_i(DisasContext *s, uint32_t insn,
> >> gen_helper_msr_i_pstate(cpu_env, tcg_op, tcg_imm);
> >> tcg_temp_free_i32(tcg_imm);
> >> tcg_temp_free_i32(tcg_op);
> >>- s->is_jmp = DISAS_UPDATE;
> >>+ /* For DAIFClear, exit the cpu loop to re-evaluate pending IRQs. */
> >>+ gen_a64_set_pc_im(s->pc);
> >
> >For op != 0x1f we end up setting the pc twice (first here, then in
> >the switch statement). It's still correct though.
>
> No, that's why I switched to DISAS_JUMP.
>
(snip)
> >+ case DISAS_EXIT:
> >+ gen_a64_set_pc_im(dc->pc);
> >+ tcg_gen_exit_tb(0);
> >+ break;
>
> This gives translate-a64.c and translate.c different semantics for
> DISAS_EXIT. I considered that to be a bad thing.
Agreed with the above two. Sorry I missed this in my first read
of the patch, it seems that my writing of my version of this patch
impaired my ability to review another version :-)
Thanks for the clarifications!
Reviewed-by: Emilio G. Cota <cota@braap.org>
Tested-by: Emilio G. Cota <cota@braap.org>
E.
next prev parent reply other threads:[~2017-06-15 5:19 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-14 19:48 [Qemu-devel] [PATCH v2 0/5] Fixes for TCG hangs Richard Henderson
2017-06-14 19:48 ` [Qemu-devel] [PATCH v2 1/5] tcg: Refactor helper_lookup_tb_ptr Richard Henderson
2017-06-14 20:27 ` [Qemu-devel] [PATCH] tcg-runtime: increase hit rate of lookup_tb_ptr Emilio G. Cota
2017-06-15 1:21 ` Richard Henderson
2017-06-15 8:35 ` [Qemu-devel] [PATCH v2 1/5] tcg: Refactor helper_lookup_tb_ptr Alex Bennée
2017-06-16 20:19 ` Emilio G. Cota
2017-06-16 20:46 ` Richard Henderson
2017-06-14 19:48 ` [Qemu-devel] [PATCH v2 2/5] target/alpha: Use tcg_gen_lookup_and_goto_ptr Richard Henderson
2017-06-14 20:37 ` Emilio G. Cota
2017-06-15 1:21 ` Richard Henderson
2017-06-15 8:48 ` Alex Bennée
2017-06-15 20:55 ` Richard Henderson
2017-06-15 21:57 ` Philippe Mathieu-Daudé
2017-06-16 2:56 ` Richard Henderson
2017-06-14 19:48 ` [Qemu-devel] [PATCH v2 3/5] target/mips: Exit after enabling interrupts Richard Henderson
2017-06-15 8:57 ` Alex Bennée
2017-06-15 14:16 ` Paolo Bonzini
2017-06-15 21:19 ` Aurelien Jarno
2017-06-15 21:29 ` Richard Henderson
2017-06-14 19:48 ` [Qemu-devel] [PATCH v2 4/5] target/s390x: Exit after changing PSW mask Richard Henderson
2017-06-15 9:00 ` Alex Bennée
2017-06-14 19:48 ` [Qemu-devel] [PATCH v2 5/5] target/arm: Exit after clearing interrupt mask Richard Henderson
2017-06-14 20:33 ` [Qemu-devel] [PATCH] target/aarch64: exit to main loop after 'msr daifclr' Emilio G. Cota
2017-06-14 21:13 ` no-reply
2017-06-15 1:20 ` Richard Henderson
2017-06-15 5:19 ` Emilio G. Cota [this message]
2017-06-15 8:30 ` [Qemu-devel] [PATCH v2 5/5] target/arm: Exit after clearing interrupt mask Alex Bennée
2017-06-14 20:22 ` [Qemu-devel] [PATCH v2 0/5] Fixes for TCG hangs no-reply
2017-06-14 20:26 ` 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=20170615051935.GA6079@flamenco \
--to=cota@braap.org \
--cc=alex.bennee@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).