Skip to content

Commit

Permalink
Clarify that CSR implicit write ordering rule isn't specific to incre…
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman authored and ved-rivos committed Jul 3, 2024
1 parent 07bfbf8 commit 8ff5457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zicsr.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ Some CSRs, such as the instructions-retired counter, `instret`, may be
modified as side effects of instruction execution. In these cases, if a
CSR access instruction reads a CSR, it reads the value prior to the
execution of the instruction. If a CSR access instruction writes such a
CSR, the write is done instead of the increment. In particular, a value
CSR, the explicit write is done instead of the update from the side effect.
In particular, a value
written to `instret` by one instruction will be the value read by the
following instruction.

Expand Down

0 comments on commit 8ff5457

Please sign in to comment.