-
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
Add unratified Smctr/Ssctr #471
base: dev
Are you sure you want to change the base?
Conversation
addi x1, x1, 1 | ||
csrw CSR_SCTRDEPTH, x1 | ||
csrr x14, CSR_SCTRDEPTH | ||
beq x1, x14, try_next_depth |
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.
This will exit the loop for the first unsupported depth value, but there is no requirement that supported values are consecutive. So an implementation could support 16 and 256, for instance. Should it iterate over all depth values?
csrw CSR_SCTRDEPTH, x1 | ||
csrr x14, CSR_SCTRDEPTH | ||
beq x1, x14, try_next_depth | ||
csrr x14, CSR_SCTRDEPTH |
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.
nit: this read looks redundant (with line 43)
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.
updated.
|
||
RVTEST_GOTO_LOWER_MODE Smode | ||
|
||
# disable CTR at M mode |
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.
nit: probably should say "disable CTR at S mode"?
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.
Its enabling right. Updated to say "at S mode"
d26d1ac
to
8e30ec7
Compare
Description
Related Issues
Ratified/Unratified Extensions
List Extensions
Reference Model Used
Mandatory Checklist:
Optional Checklist: