[BUG] Incorrect stval
value after illegal instruction exception while mstatus.TVM
flag is activated in HS-mode
#2688
Labels
notCV32A65X
It is not an CV32A65X issue
Type:Bug
For bugs in the RTL, Documentation, Verification environment or Tool and Build system
Is there an existing CVA6 bug for this?
Bug Description
In HS-mode, when mstatus.TVM flag is activated executing the HFENCE.GVMA instruction should trigger an illegal instruction exception. While this behavior is correct on CVA6 cores, after the trap is triggered, the stval register value should be set to the instruction value.
However, in the case of the HFENCE.GVMA instruction, the CVA6 core erroneously sets stval to
0x1
instead of the instruction value.Code for Reproducing the Bug:
Expected Behavior:
When the HFENCE.GVMA instruction causes the trap, the stval register should hold the value of the HFENCE.GVMA instruction.
Observed Behavior:
The stval register is incorrectly set to
0x1
instead of the correct value of the HFENCE.GVMA instruction0x62000073
.CVA6 commit: 2155d0e
Build config :
cv64a6_imafdch_sv39_wb
The text was updated successfully, but these errors were encountered: