Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RVC instructions with missing zeroes #39

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

elliotb-lowrisc
Copy link
Contributor

A handful of compressed instructions seem to have zeroes missing from their *_raw encoding format string.
This leads to incorrect encoding, such as what was intended as a c_srai64 actually being encoded as a c_addi.

A handful of compressed instructions seem to have zeroes missing
from their `*_raw` encoding format string.
This leads to incorrect encoding,
such as what was intended as a `c_srai64`
actually being encoded as a `c_addi`.
Copy link
Member

@marnovandermaas marnovandermaas left a comment

Choose a reason for hiding this comment

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

This looks right to me. I see that in RV_I.hs they expand fields that are completely zero as well.

@PeterRugg
Copy link
Collaborator

Ouch, thanks!

@PeterRugg PeterRugg merged commit 8bd8432 into CTSRD-CHERI:master Apr 17, 2024
2 checks passed
@elliotb-lowrisc elliotb-lowrisc deleted the c_enc branch April 17, 2024 12:41
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.

3 participants