Skip to content

Commit

Permalink
introduce RAS emulation mode in the introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
bcstrongx committed Jan 4, 2024
1 parent 48971bf commit 4fc786f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _Software may opt to use a depth less than the maximum supported in order to red

Only qualified transfers are recorded. Qualified transfers are those that meet the filtering criteria, which include the privilege mode and the transfer type.

Recorded transfers are inserted to the head of the buffer, while older recorded transfers may be overwritten once the buffer is full. The source PC, target PC, and some optional metadata (transfer type, elapsed cycles) are stored for each recorded transfer.
Recorded transfers are inserted to the head of the buffer, while older recorded transfers may be overwritten once the buffer is full. Or the user can enable RAS (Return Address Stack) emulation mode, where only function calls are recorded, and function returns pop the last call record. The source PC, target PC, and some optional metadata (transfer type, elapsed cycles) are stored for each recorded transfer.

The CTR buffer is accessible through an indirect CSR interface, such that software can specify which logical entry in the buffer it wishes to read or write. Logical entry 0 always corresponds to the youngest recorded transfer, followed by entry 1 as the next youngest, and so on.

Expand Down

0 comments on commit 4fc786f

Please sign in to comment.