-
Notifications
You must be signed in to change notification settings - Fork 167
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 unnecessary matches for loads/stores #477
Remove unnecessary matches for loads/stores #477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review!
21dddfb
to
5688986
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not familiar with the vector parts but the rest looks like a very nice cleanup.
5688986
to
ac301c0
Compare
This is ready now - I rebased it and fixed a small bug (mixing up |
Add a way to exclude tests by specifying an exclusion file
@billmcspadden-riscv I resolved the threads but I think we should merge #468 first (which is just the first commit from this PR) and then I'll rebase this and we can merge it. Hope that makes sense! |
Simplify the load/store code by removing the unnecessary matches on the access size. I have not done it for float loads/stores because that requires a separate change to make the float code generic over size. This also simplifies the AMO operation by not extending and truncating the values so many times, and removing the use of to_bits.
ac301c0
to
a6b656d
Compare
Ok this is rebased and ready to merge. |
IIRC those matches exist because previous Sail versions had trouble with monomorphisation of this code when generating theorem prover definitions. No idea if that is still the case. |
Ah interesting. @Alasdair do you know if that is still true? |
I don't think any of the output that's currently produced requires monomorphisation (because the Lem/Isabelle output is currently using bit lists). If I remember correctly, this part of the spec isn't a problem anyway at the moment, but the vector specifications need some tweaks. |
Simplify the load/store code by removing the unnecessary matches on the access size. I have not done it for float loads/stores because that requires a separate change to make the float code generic over size.
Note, the first commit is #468 - only review the second.