-
Notifications
You must be signed in to change notification settings - Fork 169
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
Make calculate new vl configurable #608
Conversation
LGTM but I would add some explanation and move the if to the place where it is actually used. Also move the
(Feel free to copy/paste.) |
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! I'm not a vector expert though so we might want to get the opinion of someone who is (although the spec seems pretty unambiguous on this point). I can ask a colleague if nobody is forthcoming.
@Timmmm's colleague here. LGTM. |
@@ -32,6 +32,8 @@ uint64_t rv_ram_size = UINT64_C(0x4000000); | |||
uint64_t rv_rom_base = UINT64_C(0x1000); | |||
uint64_t rv_rom_size = UINT64_C(0x100); | |||
|
|||
bool rv_vext_vl_use_ceil = false; |
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.
The commit message doesn't mention that you're changing the default behaviour
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.
Sorry..., Is this commit message ok?
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'm not sure which commit message you changed... but don't worry I will squash it and write a descriptive message.
… make it configurable
I don't know whether sail-riscv needs this.
The spike uses VLMAX to calculate new vl, and sail-riscv uses (AVL + 1) / 2.
The spec says: