Skip to content

Commit

Permalink
Merge pull request #1246 from riscv/clarify-sfence-w-inval
Browse files Browse the repository at this point in the history
Clarify when SFENCE.W.INVAL/SFENCE.INVAL.IR are legal
  • Loading branch information
aswaterman authored Feb 28, 2024
2 parents 36b5ce1 + da025f6 commit 09c16b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/supervisor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2021,6 +2021,12 @@ or VU-mode, or to execute SINVAL.VMA in VU-mode, raises a
virtual-instruction exception. When `hstatus`.VTVM=1, an attempt to execute
SINVAL.VMA in VS-mode also raises a virtual instruction exception.

Attempting to execute SFENCE.W.INVAL or SFENCE.INVAL.IR in U-mode
raises an illegal-instruction exception.
Doing so in VU-mode raises a virtual-instruction exception.
SFENCE.W.INVAL and SFENCE.INVAL.IR are unaffected by the `mstatus`.TVM and
`hstatus`.VTVM fields and hence are always permitted in S-mode and VS-mode.

[NOTE]
====
SFENCE.W.INVAL and SFENCE.INVAL.IR instructions do not need to be
Expand Down

0 comments on commit 09c16b8

Please sign in to comment.