arm: Fix a handful of M-profile bugs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | target/arm: Enforce that M-profile SP low 2 bits are always zerotarget/ target/ target/ | +15 | 1 reply | |
| 2/6 | target/arm: Add missing 'return's after calling v7m_exception_taken()target/ | +2 | 1 reply | |
| 3/6 | target/arm: Report M-profile alignment faults correctly to the guesttarget/ | +8 | 1 reply | |
| 4/6 | hw/intc/armv7m_nvic: ISCR.ISRPENDING is set for non-enabled pending interruptshw/ | +4 | 1 reply | |
| 5/6 | hw/intc/armv7m_nvic: Correct size of ICSR.VECTPENDINGhw/ | +1 | 1 reply | |
| 6/6 | hw/intc/armv7m_nvic: for v8.1M VECTPENDING hides S exceptions from NShw/ | +24 | 1 reply |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH for-6.1 0/6] arm: Fix a handful of M-profile bugs
This patchset fixes a handful of minor M-profile bugs:
* The low 2 bits of SP should not be writeable (they are always 0)
* Missing 'return' statements for some "tail chain to another exception after detecting an error during exception return" cases
* Alignment faults were being incorrectly reported to the guest as MMU faults
* ISCR.ISRPENDING wasn't being set if there was a pending but non-enabled interrupt
* ISCR.VECTPENDING is 9 bits, not 8
* ISCR.VECTPENDING was missing the new-for-v8.1M behaviour where it hides the identity of a pending Secure exception from a NonSecure read of the register
Nothing here is very critical, but they might as well go into 6.1 because they are bugfixes.
thanks
-- PMM
Peter Maydell (6):
target/arm: Enforce that M-profile SP low 2 bits are always zero target/arm: Add missing 'return's after calling v7m_exception_taken() target/arm: Report M-profile alignment faults correctly to the guest hw/intc/armv7m_nvic: ISCR.ISRPENDING is set for non-enabled pending
interrupts
hw/intc/armv7m_nvic: Correct size of ICSR.VECTPENDING hw/intc/armv7m_nvic: for v8.1M VECTPENDING hides S exceptions from NS
hw/intc/armv7m_nvic.c | 40 ++++++++++++++++++++++++++++------------ target/arm/gdbstub.c | 4 ++++ target/arm/m_helper.c | 24 ++++++++++++++++++------ target/arm/translate.c | 3 +++ 4 files changed, 53 insertions(+), 18 deletions(-)
Signature · 1 line
2.20.1