target/riscv: Fix MEPC/SEPC bit masking
Status from this message: Applied to riscv-to-apply.next
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | target/riscv: Fix MEPC/SEPC bit masking for IALIGNtarget/ target/ target/ | +17 | 2 replies | |
| 2/2 | tests/tcg/riscv64: Add test for MEPC bit maskingtests/ tests/ | +77 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Henrique Barboza | Alistair Francis |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] target/riscv: Fix MEPC/SEPC bit masking
This patch series fixes incorrect behavior in MEPC/SEPC CSRs where the lower bits were not properly masked according to the RISC-V specification.
The issue was discovered when vectored mode bits from STVEC were written to MEPC and not properly cleared, causing incorrect behavior on MRET.
Charalampos Mitrodimas (2):
target/riscv: Fix MEPC/SEPC bit masking for IALIGN tests/tcg/riscv64: Add test for MEPC bit masking
target/riscv/csr.c | 8 +-- target/riscv/internals.h | 11 ++++ target/riscv/op_helper.c | 4 +- tests/tcg/riscv64/Makefile.softmmu-target | 4 ++ tests/tcg/riscv64/test-mepc-masking.S | 73 +++++++++++++++++++++++ 5 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 tests/tcg/riscv64/test-mepc-masking.S
Signature · 1 line
2.47.2