[Bug Report] Incorrect exception type for illegal virtual address access #904
Labels
Component:RTL
For issues in the RTL (e.g. for files in the rtl directory)
Status:Wont-fix
Issue will not be fixed
Type:Question
For general questions
Our co-simulation framework found that the exception type when access/load/store an illegal virtual address is incorrect.
In the following test case, we flipped the MSB of a legal virtual address and load with it at 0x00002980.
cva6 throws an access fault, while spike throws a page fault.
Since page fault has been delegated to s mode, they jump to different trap vectors.
According to riscv-privileged specification:
Both
load,store, andfetchcan cause this issue.fetch test case: cva6-7.zip
load test case: cva6-6.zip
The text was updated successfully, but these errors were encountered: