From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <rth@twiddle.net>
Cc: qemu-devel@nongnu.org, cota@braap.org, pbonzini@redhat.com,
qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v2 5/5] target/arm: Exit after clearing interrupt mask
Date: Thu, 15 Jun 2017 09:30:44 +0100 [thread overview]
Message-ID: <87y3stmz4b.fsf@linaro.org> (raw)
In-Reply-To: <20170614194821.8754-6-rth@twiddle.net>
Richard Henderson <rth@twiddle.net> writes:
> 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>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> 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);
> + s->is_jmp = (op == 0x1f ? DISAS_EXIT : DISAS_JUMP);
> break;
> }
> default:
> @@ -11369,6 +11371,9 @@ void gen_intermediate_code_a64(ARMCPU *cpu, TranslationBlock *tb)
> case DISAS_JUMP:
> tcg_gen_lookup_and_goto_ptr(cpu_pc);
> break;
> + case DISAS_EXIT:
> + tcg_gen_exit_tb(0);
> + break;
> case DISAS_TB_JUMP:
> case DISAS_EXC:
> case DISAS_SWI:
--
Alex Bennée
next prev parent reply other threads:[~2017-06-15 8:30 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
2017-06-15 8:30 ` Alex Bennée [this message]
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=87y3stmz4b.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=cota@braap.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).