josecm / riscv-hyp-tests

A bare-metal application to test specific features of the risc-v hypervisor extension
GNU General Public License v3.0
36 stars 22 forks source link

`hs hlvxwu on vs-level non-exec page leads to lpf` fails on spike #16

Open defermelowie opened 11 months ago

defermelowie commented 11 months ago

The test hs hlvxwu on vs-level non-exec page leads to lpf fails on riscv-isa-sim (spike) because spike sets mstatus.GVA whereas the test expects GVA to be zero. However, this behavior seems strange to me because mstatus.GVA should be set whenever mtval contains a guest virtual address. Since VS-level address translation fails in this test, what else, except a guest virtual address could be reported?