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

CSR instructions should treat immediate as unsigned #9

Open
MichaelBell opened this issue Feb 15, 2024 · 0 comments
Open

CSR instructions should treat immediate as unsigned #9

MichaelBell opened this issue Feb 15, 2024 · 0 comments

Comments

@MichaelBell
Copy link

e.g. InstructionCSRRW(x1, x0, csrnames.cycle) raises an error because csrnames.cycle isn't in the valid range. I have worked around this by subtracting 0x1000 from the constant.

I think there should be a variant of the InstructionIType that treats the immediate as unsigned, used for the CSR instructions.

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

No branches or pull requests

1 participant