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

Introduce formal verification for compressed loads and stores #408

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

francois141
Copy link
Collaborator

This commit adds two new symbolic test for verifying the compressed loads and stores. The process found one bug which was fixed in a recent previous commit.

@francois141 francois141 force-pushed the sail-compressed-load-store branch from ff3ce13 to 5e29af8 Compare February 11, 2025 13:02
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.

Overall looks good to me, there is just one nit regarding the code organization: I am not a fan of creating two new crates when we already have one for the decoder. Could we create a single decoder crate instead, and have three modules there for the different sub-parts of the decoder? This also raise the question of how to name the "main" decoder, does it only decode CSRs? If yes is it the "CSR" or "privileged" decoder?

@francois141 francois141 force-pushed the sail-compressed-load-store branch 2 times, most recently from 38bef46 to 80eb22d Compare February 13, 2025 15:21
@francois141
Copy link
Collaborator Author

Changes done

@francois141 francois141 force-pushed the sail-compressed-load-store branch from 80eb22d to d98535b Compare February 13, 2025 15:28
This commit adds two new symbolic test for verifying the decoding process of the compressed loads and stores. The process found one bug which was fixed in a recent previous commit.
Currently unsigned loads with 8 bytes precisions are not decoded and correspond to an unknown instruction in Miralis. This commit decodes them.
This commit adds two new symbolic test for verifying the decoding process of the loads and stores. The process found one bug which was fixed in a recent previous commit.
@CharlyCst CharlyCst force-pushed the sail-compressed-load-store branch from d98535b to 71df188 Compare February 14, 2025 14:05
@CharlyCst CharlyCst merged commit 8d6e5fd into main Feb 14, 2025
1 check passed
@CharlyCst CharlyCst deleted the sail-compressed-load-store branch February 14, 2025 15:23
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