Skip to content

CSR: treat CSRRS/CSRRC with rs1/uimm=0 as non-writes - #282

Merged
poemonsense merged 1 commit into
masterfrom
circle-patch5
Sep 20, 2026
Merged

poemonsense merged 1 commit into
masterfrom
circle-patch5

Conversation

@good-circle

Copy link
Copy Markdown
Collaborator

csrrs/csrrc with a zero source is a read. Do not raise illegal-instruction on read-only CSRs, and do not take the write path that would skip mcycle/minstret auto-increment.

csrrs/csrrc with a zero source is a read. Do not raise
illegal-instruction on read-only CSRs, and do not take the write
path that would skip mcycle/minstret auto-increment.
@poemonsense
poemonsense merged commit 27d2ae9 into master Sep 20, 2026
1 check passed
@poemonsense
poemonsense deleted the circle-patch5 branch September 20, 2026 02:13
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