Skip to content

riscv: Fix CSRRW no-read semantics#30

Open
whensun wants to merge 1 commit into
antmicro:masterfrom
whensun:renode-csrrw-no-read
Open

riscv: Fix CSRRW no-read semantics#30
whensun wants to merge 1 commit into
antmicro:masterfrom
whensun:renode-csrrw-no-read

Conversation

@whensun

@whensun whensun commented Jun 19, 2026

Copy link
Copy Markdown

This PR fixes RISC-V CSR instruction behavior in tlib.

For CSRRW and CSRRWI, when rd is x0, the instruction must not read the CSR and must not trigger CSR read side effects. This PR adds a no-read helper path for those cases.

Related to renode/renode#909

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.

1 participant