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 exception priority for RV32E JAL[R], loads, AMOs #1783

Merged
merged 3 commits into from
Aug 23, 2024
Merged

Conversation

aswaterman
Copy link
Collaborator

For RV32E instructions that write RD, we need to evaluate whether RD is a valid register specifier before evaluating other exception conditions, else we won't raise illegal-instruction exceptions with the correct priority.

The first commit in this PR was a refactoring that I thought would be needed to complete the rest of the PR. It turned out not to be necessary, but it's an improvement, so I left it in.

Resolves #1782

@aswaterman aswaterman merged commit 1b80449 into master Aug 23, 2024
3 checks passed
@aswaterman aswaterman deleted the fix-1782 branch August 23, 2024 22:09
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.

RV32E - exception priority issue
2 participants