mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/riscv: Implement Ssdbltrp exception handling
When the Ssdbltrp ISA extension is enabled, if a trap happens in S-mode while SSTATUS.SDT isn't cleared, generate a double trap exception to M-mode. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20250110125441.3208676-5-cleger@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
72d71d8732
commit
967760f62c
3 changed files with 39 additions and 6 deletions
|
@ -701,6 +701,7 @@ typedef enum RISCVException {
|
|||
RISCV_EXCP_INST_PAGE_FAULT = 0xc, /* since: priv-1.10.0 */
|
||||
RISCV_EXCP_LOAD_PAGE_FAULT = 0xd, /* since: priv-1.10.0 */
|
||||
RISCV_EXCP_STORE_PAGE_FAULT = 0xf, /* since: priv-1.10.0 */
|
||||
RISCV_EXCP_DOUBLE_TRAP = 0x10,
|
||||
RISCV_EXCP_SW_CHECK = 0x12, /* since: priv-1.13.0 */
|
||||
RISCV_EXCP_HW_ERR = 0x13, /* since: priv-1.13.0 */
|
||||
RISCV_EXCP_INST_GUEST_PAGE_FAULT = 0x14,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue