Skip to content

Commit

Permalink
[docs] add AMO HPM note
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Feb 8, 2025
1 parent 6ba752a commit 0db1989
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/datasheet/cpu_csr.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,11 @@ caused by a fence instruction, a control flow transfer or a instruction fetch bu
The CPU HPM/counter logic treats all executed instruction as "retired" even if they raise an exception,
cause an interrupt, trigger a privilege mode change or were not meant to retire (i.e. claimed by the RISC-V spec.).

.Atomic Memory Access
[NOTE]
The read-modify-write instructions of the <<_zaamo_isa_extension>> operate as simple load for the CPU hardware.
Hence, they will only trigger `HPMCNT_EVENT_LOAD` and only once.


{empty} +
[discrete]
Expand Down

0 comments on commit 0db1989

Please sign in to comment.