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 1/7] target/arm: Add armv7m_nvic_set_pending_derived()
Date: Sat, 3 Feb 2018 13:01:37 -0800	[thread overview]
Message-ID: <3b46f5ca-e789-ac0b-04f2-1df7fc0b7633@linaro.org> (raw)
In-Reply-To: <1517324542-6607-2-git-send-email-peter.maydell@linaro.org>

On 01/30/2018 07:02 AM, Peter Maydell wrote:
> In order to support derived exceptions (exceptions generated in
> the course of trying to take an exception), we need to be able
> to handle prioritizing whether to take the original exception
> or the derived exception.
> 
> We do this by introducing a new function
> armv7m_nvic_set_pending_derived() which the exception-taking code in
> helper.c will call when a derived exception occurs.  Derived
> exceptions are dealt with mostly like normal pending exceptions, so
> we share the implementation with the armv7m_nvic_set_pending()
> function.
> 
> Note that the way we structure this is significantly different
> from the v8M Arm ARM pseudocode: that does all the prioritization
> logic in the DerivedLateArrival() function, whereas we choose to
> let the existing "identify highest priority exception" logic
> do the prioritization for us. The effect is the same, though.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  target/arm/cpu.h      | 13 ++++++++++
>  hw/intc/armv7m_nvic.c | 68 +++++++++++++++++++++++++++++++++++++++++++++++++--
>  hw/intc/trace-events  |  2 +-
>  3 files changed, 80 insertions(+), 3 deletions(-)

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


r~

  reply	other threads:[~2018-02-03 21:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-30 15:02 [Qemu-devel] [PATCH 0/7] target/arm: Implement M profile derived exceptions Peter Maydell
2018-01-30 15:02 ` [Qemu-devel] [PATCH 1/7] target/arm: Add armv7m_nvic_set_pending_derived() Peter Maydell
2018-02-03 21:01   ` Richard Henderson [this message]
2018-01-30 15:02 ` [Qemu-devel] [PATCH 2/7] target/arm: Split "get pending exception info" from "acknowledge it" Peter Maydell
2018-02-03 21:06   ` Richard Henderson
2018-02-05 23:44   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-02-06  9:42     ` Peter Maydell
2018-01-30 15:02 ` [Qemu-devel] [PATCH 3/7] target/arm: Add ignore_stackfaults argument to v7m_exception_taken() Peter Maydell
2018-02-03 21:08   ` Richard Henderson
2018-01-30 15:02 ` [Qemu-devel] [PATCH 4/7] target/arm: Make v7M exception entry stack push check MPU Peter Maydell
2018-02-03 21:21   ` Richard Henderson
2018-02-03 21:30     ` Peter Maydell
2018-02-03 21:39       ` Richard Henderson
2018-02-03 21:32   ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2018-01-30 15:02 ` [Qemu-devel] [PATCH 5/7] target/arm: Make v7m_push_callee_stack() honour MPU Peter Maydell
2018-02-03 21:26   ` Richard Henderson
2018-02-05 23:48   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-01-30 15:02 ` [Qemu-devel] [PATCH 6/7] target/arm: Make exception vector loads honour the SAU Peter Maydell
2018-02-03 21:29   ` Richard Henderson
2018-01-30 15:02 ` [Qemu-devel] [PATCH 7/7] target/arm: Handle exceptions during exception stack pop Peter Maydell
2018-02-03 21:31   ` Richard Henderson

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=3b46f5ca-e789-ac0b-04f2-1df7fc0b7633@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).