-
Notifications
You must be signed in to change notification settings - Fork 204
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
Fixed reversed order of Zicboz and Zicsr in macros for cbo.zero #473
Conversation
Note that Sail does not yet support cbo.zero, so Sail throws an illegal instruction exception when attempting to simulate it during riscof compilation. Consequently I have been unable to fully test this. However, it should fix the problem Tim Hutt raised about the commit. |
…A fields in rv32e_m/B/src/ror-01 and rori-01 that listed I instead of E.
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!
I have a PR to add cbo.zero support to Sail here if you want to test it:
However I'd say it's not necessary for you to test it - I made the same changes locally and it selects the test now & passes. (I would have made a PR but you were faster than our PR approval process!)
Updated RVTEST_ISA string for RV64-cbo.zero test
@jamesbeyond please have a look at it, this one is good to go, so you may merge this one |
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!
Regarding " It appears that the cbo tests don't use CSRs and that the Zicsr
would likely be unnecessary. "
While CBO tsts don't explicitly use CSRs, if there is any possibility they
would trap, they can implicitly use them (at least, for arch-tests),
So Zicsr can be removed if there is no possibility of a trap.
…On Wed, Jun 12, 2024 at 3:34 AM David Harris ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
On riscv-test-suite/rv64i_m/CMO/src/cbo.zero-01.S
<#473 (comment)>
:
I added Zicsr to the RV64 cbo.zero RVTEST_ISA string for consistency with
the other tests per @UmerShahidengr <https://github.com/UmerShahidengr>
's comment.
I'm not the author of cbo. It appears that the cbo tests don't use CSRs
and that the Zicsr would likely be unnecessary. I believe somebody from my
team had experimented with that months ago and presumably removed the Zicsr
in just this case, but I agree that it is better to be consistent. It's
hard to envision a system with caches but no CSRs, so Zicsr is likely
harmless, and if the tests are ever generalized to non-machine mode, Zicsr
will be nessary to support menvcfg and the other modes.
@liweiwei90 <https://github.com/liweiwei90> was the original author of PR
#226 <#226> with
cbo.zero tests. I will defer to the author if they decide to remove Zicsr
from cbo.zero at a later point. If so, I think it should come out of
RVTEST_ISA and RVTEST_CASE for both rv32i_m and rv64i_m.
—
Reply to this email directly, view it on GitHub
<#473 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJWSMQ4MK7YZGX6ONA3ZHAP5DAVCNFSM6AAAAABJE7T3W6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMJSGYZDCOBSHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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.
LGTM
Description
Related Issues
Ratified/Unratified Extensions
List Extensions
Reference Model Used
Mandatory Checklist:
Optional Checklist: