[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/6] arm v8M: Forcibly clear negative
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [PATCH 2/6] arm v8M: Forcibly clear negative-priority exceptions on deactivate |
Date: |
Mon, 17 Jun 2019 12:39:46 -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:
> To prevent execution priority remaining negative if the guest
> returns from an NMI or HardFault with a corrupted IPSR, the
> v8M interrupt deactivation process forces the HardFault and NMI
> to inactive based on the current raw execution priority,
> even if the interrupt the guest is trying to deactivate
> is something else. In the pseudocode this is done in the
> Deactivate() function.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> hw/intc/armv7m_nvic.c | 40 +++++++++++++++++++++++++++++++++++-----
> 1 file changed, 35 insertions(+), 5 deletions(-)
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
- Re: [Qemu-arm] [Qemu-devel] [PATCH 2/6] arm v8M: Forcibly clear negative-priority exceptions on deactivate,
Richard Henderson <=
- [Qemu-arm] [PATCH 3/6] target/arm: v8M: Check state of exception being returned from, Peter Maydell, 2019/06/17
- [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