Skip to content

Commit

Permalink
Fix parentheses in mstatus SD description (#1799)
Browse files Browse the repository at this point in the history
* Fix parentheses in mstatus SD description

Repeated parentheses were not escaped, so they were not displayed correctly.

Signed-off-by: Jordan Carlin <[email protected]>

* Remove unnecessary parentheses and add binary prefix for SD definition

---------

Signed-off-by: Jordan Carlin <[email protected]>
  • Loading branch information
jordancarlin authored Jan 16, 2025
1 parent 97273ec commit e4d1542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ additional microarchitectural bits might be maintained in the extension
to further reduce context save and restore overhead.

The SD bit is read-only and is set when either the FS, VS, or XS bits
encode a Dirty state (i.e., SD=((FS==11) OR (XS==11) OR (VS==11))). This
encode a Dirty state (i.e., `SD=(FS==0b11 OR XS==0b11 OR VS==0b11)`). This
allows privileged code to quickly determine when no additional context
save is required beyond the integer register set and `pc`.

Expand Down

0 comments on commit e4d1542

Please sign in to comment.