feat: implement privileged mode support
This commit is contained in:
5
sim/tests/PrivilegeTransitionTest.scala
Normal file
5
sim/tests/PrivilegeTransitionTest.scala
Normal file
@@ -0,0 +1,5 @@
|
||||
// Verilator scenario checklist:
|
||||
// 1. Start in M-mode after reset.
|
||||
// 2. Configure mstatus.MPP=S and mepc to an S-mode entry point.
|
||||
// 3. Execute mret and verify the redirected PC equals mepc.
|
||||
// 4. Execute an S-mode ecall path and verify trap state is recoverable.
|
||||
Reference in New Issue
Block a user