Skip to content

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Oct 20, 2025

This completes the CSR performance counter implementation by adding the missing CSR_INSTRETH handler. This register provides access to the upper 32 bits of the retired instruction counter, maintaining symmetry with CSR_CYCLEH.


Summary by cubic

Add CSR_INSTRETH support to read the high 32 bits of the retired instruction counter (instret). This mirrors CSR_CYCLEH and completes the CSR performance counter implementation.

This completes the CSR performance counter implementation by adding the
missing CSR_INSTRETH handler. This register provides access to the upper
32 bits of the retired instruction counter, maintaining symmetry with
CSR_CYCLEH.
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Contributor Author

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Benchmark suite Current: 0fcee70 Previous: 9074319 Ratio
Dhrystone 1325 Average DMIPS over 10 runs 1342 Average DMIPS over 10 runs 1.01
Coremark 965.132 Average iterations/sec over 10 runs 961.709 Average iterations/sec over 10 runs 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@jserv jserv merged commit 23ae8e5 into master Oct 20, 2025
21 of 25 checks passed
@jserv jserv deleted the csr-cycle branch October 20, 2025 19:11
@jserv jserv added this to the release-2025.2 milestone Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants