qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
	qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH 4/4] target/arm: Implement tailchaining for M profile cores
Date: Fri, 20 Jul 2018 09:22:47 -0700	[thread overview]
Message-ID: <72aa0d1f-92ad-1cdb-84b7-1649b03a54ff@linaro.org> (raw)
In-Reply-To: <20180720145647.8810-5-peter.maydell@linaro.org>

On 07/20/2018 07:56 AM, Peter Maydell wrote:
> Tailchaining is an optimization in handling of exception return
> for M-profile cores: if we are about to pop the exception stack
> for an exception return, but there is a pending exception which
> is higher priority than the priority we are returning to, then
> instead of unstacking and then immediately taking the exception
> and stacking registers again, we can chain to the pending
> exception without unstacking and stacking.
> 
> For v6M and v7M it is IMPDEF whether tailchaining happens for pending
> exceptions; for v8M this is architecturally required.  Implement it
> in QEMU for all M-profile cores, since in practice v6M and v7M
> hardware implementations generally do have it.
> 
> (We were already doing tailchaining for derived exceptions which
> happened during exception return, like the validity checks and
> stack access failures; these have always been required to be
> tailchained for all versions of the architecture.)
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  target/arm/helper.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~

      reply	other threads:[~2018-07-20 16:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 14:56 [Qemu-devel] [PATCH 0/4] target/arm: Implement tailchaining for M profile cores Peter Maydell
2018-07-20 14:56 ` [Qemu-devel] [PATCH 1/4] target/arm: Improve exception-taken logging Peter Maydell
2018-07-20 16:15   ` Richard Henderson
2018-07-21 19:47   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-07-20 14:56 ` [Qemu-devel] [PATCH 2/4] target/arm: Initialize exc_secure correctly in do_v7m_exception_exit() Peter Maydell
2018-07-20 16:17   ` Richard Henderson
2018-07-21 19:48   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-07-20 14:56 ` [Qemu-devel] [PATCH 3/4] target/arm: Restore M-profile CONTROL.SPSEL before any tailchaining Peter Maydell
2018-07-20 16:19   ` Richard Henderson
2018-07-20 14:56 ` [Qemu-devel] [PATCH 4/4] target/arm: Implement tailchaining for M profile cores Peter Maydell
2018-07-20 16:22   ` Richard Henderson [this message]

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=72aa0d1f-92ad-1cdb-84b7-1649b03a54ff@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /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).