RISC-V: Populate mtval and stval
Status from this message: Applied to riscv-to-apply.next
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 8 repliesApplied
- v23 patches 8 repliesSuperseded
- v12 patches 4 repliesSuperseded
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | target/riscv: Set the opcode in DisasContexttarget/ | +2 | 1 reply | |
| 2/3 | target/riscv: Fixup setting GVAtarget/ | +6 | 4 replies | |
| 3/3 | target/riscv: Implement the stval/mtval illegal instructiontarget/ target/ target/ | +8 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson | Bin Meng |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | R-b |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/3] RISC-V: Populate mtval and stval
From: Alistair Francis <[email protected]>
Populate mtval and stval when taking an illegal instruction exception.
The RISC-V spec states that "The stval register can optionally also be used to return the faulting instruction bits on an illegal instruction exception...". In this case we are always writing the value on an illegal instruction.
This doesn't match all CPUs (some CPUs won't write the data), but in QEMU let's just populate the value on illegal instructions. This won't break any guest software, but will provide more information to guests.
Alistair Francis (3):
target/riscv: Set the opcode in DisasContext target/riscv: Fixup setting GVA
target/riscv: Implement the stval/mtval illegal instruction
target/riscv/cpu.h | 2 ++ target/riscv/cpu_helper.c | 24 +++++++++--------------- target/riscv/translate.c | 5 +++++ 3 files changed, 16 insertions(+), 15 deletions(-)
Signature · 1 line
2.31.1