You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field GVA (Guest Virtual Address) is written by the implementation whenever a trap is taken into M-mode. For any trap (breakpoint, address misaligned, access fault, page fault, or guest-page fault) that writes a guest virtual address to mtval, GVA is set to 1. For any other trap into M-mode, GVA is set to 0.
Error log or Screenshots
Necessary information on versions
ready-to-run's NEMU commit: c9c1451
The text was updated successfully, but these errors were encountered:
Thank you for your issue.
You wrote 1 to mprv, 1 to mpv, and 3 to mpp in mstatus, but after executing the ebreak instruction, the gva in mstatus is still 1 in NEMU.
This is indeed a bug in NEMU, and I have fixed the set/clear logic for gva, which should have fixed the issue.
Describe the bug
In M-mode, mstatus's GVA value is incorrectly set when a trap is thrown during ebreak.
To Reproduce
Expected behavior
Error log or Screenshots
Necessary information on versions
ready-to-run's NEMU commit: c9c1451
The text was updated successfully, but these errors were encountered: