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 Ecall and Ebreak from Instr #375

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

francois141
Copy link
Collaborator

The ECALL and EBREAK instructions have distinct mcause values and are not considered illegal instructions. Since they trigger different types of traps, they do not require decoding in our decoder for illegal instructions. As a result, we can safely remove them from the instruction decoder.

@francois141 francois141 requested a review from CharlyCst January 9, 2025 15:01
@CharlyCst CharlyCst force-pushed the remove-ecal-ebreak-decoder branch from 7443b45 to 6e70cea Compare January 20, 2025 17:15
Copy link
Owner

@CharlyCst CharlyCst left a comment

Choose a reason for hiding this comment

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

I rebased the PR. Unfortunately it breaks the verify_decoder Kani harness because of the removed Ecall and Ebreak instructions. Did you already fix this issue in another PR or branch?

@francois141 francois141 force-pushed the remove-ecal-ebreak-decoder branch from 6e70cea to 17df031 Compare January 25, 2025 16:48
@francois141
Copy link
Collaborator Author

Yes, I fixed this in another branch. I rebased the code with a decoder that should work now.

@francois141 francois141 requested a review from CharlyCst January 25, 2025 16:48
The ECALL and EBREAK instructions have distinct mcause values and are
not considered illegal instructions. Since they trigger different types
of traps, they do not require decoding in our decoder for illegal
instructions. As a result, we can safely remove them from the
instruction decoder.
@CharlyCst CharlyCst force-pushed the remove-ecal-ebreak-decoder branch from 17df031 to 4a49aef Compare January 27, 2025 09:20
@CharlyCst CharlyCst merged commit 9fc24f2 into main Jan 27, 2025
1 check passed
@CharlyCst CharlyCst deleted the remove-ecal-ebreak-decoder branch January 27, 2025 09:25
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