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
{{ message }}
Repository navigation
TVM=1, SFENCE.VMA in S-mode does not raise an exception #253
The TVM (Trap Virtual Memory) bit is a WARL field that supports intercepting supervisor virtual-memory management operations. When TVM=1, attempts to read or write the satp CSR or execute an SFENCE.VMA or SINVAL.VMA instruction while executing in S-mode will raise an illegal-instruction exception. When TVM=0, these operations are permitted in S-mode. TVM is read-only 0 when S-mode is not supported.
However, when TVM is 1, the NutShell processor will not cause an illegal instruction exception when executing SFENCE.VMA in S mode.
Activity
fly-1011 commentedon Dec 11, 2025
In addition, TVM=1,
satpaccess in S-mode does not raise an exception.Inconsistent information is as follows:
Test program and log information: test_TVM_satp.zip