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

Remove MRET #497

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Remove MRET #497

merged 3 commits into from
Oct 30, 2024

Conversation

matthiasgoergens
Copy link
Collaborator

There are many extensions to RiscV. We only support one of them: 'RV32M' (which includes multiplication and division).

Generally, we ignore the unsupported extenions. There's no trace of floating point or compressed instructions in our code.

For some reason a snippet of one of the priviliged instructions has made it into our code: MRET. We don't actually support it anyway, so we might as well remove it. Just like we have no trace of any of the other unsupported extensions in our code.

There are many extensions to RiscV.  We only support one of them:
'RV32M' (which includes multiplication and division).

Generally, we ignore the unsupported extenions.  There's no trace of
floating point or compressed instructions in our code.

For some reason a snippet of one of the priviliged instructions has made
it into our code: MRET.  We don't actually support it anyway, so we
might as well remove it.  Just like we have no trace of any of the other
unsupported extensions in our code.
@@ -182,8 +182,8 @@ pub enum InsnKind {
SB,
SH,
SW,
/// ECALL and EBREAK etc.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

EANY isn't actually part of the Risc-V standard, so it's hard to look up what it's supposed to mean. Hence the (admittedly unrelated) addition here.

Copy link
Collaborator

@naure naure left a comment

Choose a reason for hiding this comment

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

You can also remove the unused mret methods then.

@matthiasgoergens matthiasgoergens enabled auto-merge (squash) October 30, 2024 14:59
@matthiasgoergens matthiasgoergens merged commit 841742e into master Oct 30, 2024
6 checks passed
@matthiasgoergens matthiasgoergens deleted the matthias/opcodes branch October 30, 2024 15:05
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