-
Notifications
You must be signed in to change notification settings - Fork 159
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
If "C" cannot be disabled, all changes to misa must be suppressed #269
If "C" cannot be disabled, all changes to misa must be suppressed #269
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.
One more question:
Did you test this? If so, what form did the test take?
39cae58
to
5010f08
Compare
5010f08
to
136aa02
Compare
136aa02
to
5181a18
Compare
5181a18
to
be62827
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.
Various outstanding comments
You'll also need to have a proper commit message that documents the F/D part of this. That should probably even be a separate commit to be honest. |
Given that it doesn't even compile, we can safely assume that the answer will be "no"... |
Agreed, if there are two behavioral changes here, that needs to be two separate commits, and arguably even two separate PRs, since this one's title refers only to misa.C. I'll try to test the C for correct behavior once this PR settles down. |
be62827
to
f939509
Compare
f939509
to
4a4d346
Compare
35fae4b
to
be6fafb
Compare
Updated the commit to add changes only related to the C extension and tested the changes through assembly tests. Changes related to F/D extension are in addition to these changes. Will submit a separate PR after these changes are merged. |
be6fafb
to
f0b693e
Compare
f0b693e
to
e01da53
Compare
@jrtc27 @billmcspadden-riscv Let me know if anything needs to be changed. Otherwise, this PR can be merged. |
@ahadali-10x I was about to merge, when I saw that this question still seemed unanswered... could you provide the requested information? Thx. |
Yes, it is tested with the assembly tests. |
Which "assembly tests"?.. |
I wrote them manually. |
Can we assume that you used a standard ACT tests format, or did you do
something different?
…On Tue, Aug 15, 2023 at 12:54 PM Ahad Ali ***@***.***> wrote:
I wrote them manually.
—
Reply to this email directly, view it on GitHub
<#269 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJVHL4HDMIYEGDSMU5DXVPHWTANCNFSM6AAAAAAYYOP4NY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes I followed the ACT tests format. |
Can you put a pointer to the tests here? It sounds like a review of it is
desied.
…On Tue, Aug 15, 2023 at 1:36 PM Ahad Ali ***@***.***> wrote:
Yes I followed the ACT tests format.
—
Reply to this email directly, view it on GitHub
<#269 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJRXQQKGBUWVZK47RTLXVPMWPANCNFSM6AAAAAAYYOP4NY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Here is the link to test: https://github.com/ahadali-10x/riscv-arch-test/tree/sail_test/riscv-test-suite/rv32i_m/sail_test. These tests were run on the RISCOF by passing the required command line arguments. Checked results manually. |
@allenjbaum Kindly let me know if anything else is needed. |
@ahadali-10x , question: I'm looking for the text in the Priv Spec that requires this change. I'm not finding anything. Would you point me to the place in the spec that requires this functionality? Based on the title of this PR, the logic of the code looks correct to me. Bill Mc. |
This is the second last paragraph of section |
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.
I approve.
@ptomsich Let me know if you need any more information. Otherwise, this PR can be merged. |
Changed
legalize_misa
function in theriscv_sys_regs.sail
in themodel/
directory to add condition If "C" cannot be disabled because of next PC is misaligned, all changes to misa will be suppressedIssue Fixed