[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH 3/6] target/arm: v8M: Check state of
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [PATCH 3/6] target/arm: v8M: Check state of exception being returned from |
Date: |
Mon, 17 Jun 2019 12:58:24 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/17/19 10:53 AM, Peter Maydell wrote:
> In v8M, an attempt to return from an exception which is not
> active is an illegal exception return. For this purpose,
> exceptions which can configurably target either Secure or
> NonSecure are not considered to be active if they are
> configured for the opposite security state for the one
> we're trying to return from (eg attempt to return from
> an NS NMI but NMI targets Secure). In the pseudocode this
> is handled by IsActiveForState().
>
> Detect this case rather than counting an active exception
> possibly of the wrong security state as being sufficient.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> hw/intc/armv7m_nvic.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- [Qemu-arm] [PATCH 0/6] Six minor M-profile bugfixes, Peter Maydell, 2019/06/17
- [Qemu-arm] [PATCH 2/6] arm v8M: Forcibly clear negative-priority exceptions on deactivate, Peter Maydell, 2019/06/17
- [Qemu-arm] [PATCH 3/6] target/arm: v8M: Check state of exception being returned from, Peter Maydell, 2019/06/17
- Re: [Qemu-arm] [Qemu-devel] [PATCH 3/6] target/arm: v8M: Check state of exception being returned from,
Richard Henderson <=
- [Qemu-arm] [PATCH 6/6] target/arm: Execute Thumb instructions when their condbits are 0xf, Peter Maydell, 2019/06/17
- [Qemu-arm] [PATCH 4/6] target/arm: Use _ra versions of cpu_stl_data() in v7M helpers, Peter Maydell, 2019/06/17
- [Qemu-arm] [PATCH 5/6] hw/timer/armv7m_systick: Forbid non-privileged accesses, Peter Maydell, 2019/06/17
- [Qemu-arm] [PATCH 1/6] target/arm: NS BusFault on vector table fetch escalates to NS HardFault, Peter Maydell, 2019/06/17