-
Notifications
You must be signed in to change notification settings - Fork 566
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
i#3544 RV64: Preserve vtype and vl vector registers #7110
Conversation
… vector extension. This patch was authored at the Computer Architecture and VLSI Laboratory, Institute of Computer Sciense, Foundation of Reasearch and Technology, Hellas. It emmits the necessary instructions that handle saving and restoring the vl and vtype during the context switches, when using the vector extension of the RISC-V ISA. This is required, in order to use the use the vector extension correctly.
Accidentally tabs were used somewhere, replaced with spaces
Hi all this patch is absolutely essential for any meaningful rv64 vector code to work properly (otherwise it fails with illegal instruction). Can someone please review it? |
Looks like the triager @xdje42 missed this. |
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.
A few more minor suggestions. After all other comments are addressed, this PR looks good to me.
(Sorry for the late review; I missed this one. Please feel free to @ me for possible future RV64-related PRs.)
Please don't force-push on shared branches (documented at https://dynamorio.org/page_code_reviews.html#autotoc_md118 and in other places) |
When you are done, please re-request another round of review from previous reviewers at the top-right of the Web UI. |
This patch was authored at the Computer Architecture and VLSI Laboratory, Institute of Computer Sciense, Foundation of Reasearch and Technology, Hellas. It emits the necessary instructions that handle saving and restoring the vl and vtype during the context switches, when using the vector extension of the RISC-V ISA. This is required, in order to use the vector extension correctly. Issue: #3544
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.
Please reply to (typically "Done") and resolve all of the comments (unless there is something still there to discuss but make that clear in a reply) before re-requesting review (see https://dynamorio.org/page_code_reviews.html#autotoc_md118).
Fixxed issue about a comment Issue: #3544
Renamed VL and VTYPE to CSR_VL and CSR_VTYPE Issue: #3544
Okay, this is ready to merge, merging. |
This patch was authored at the Computer Architecture and VLSI Laboratory, Institute of Computer Science, Foundation of Research and Technology, Hellas.
It emits the necessary instructions that handle saving and restoring the vl and vtype during the context switches, when using the vector extension of the RISC-V ISA. This is required, in order to use the vector extension correctly.
Also corrected the order of append_restore_xflags and append_restore_simd_reg (in emit_utils_shared.c ) in order to have the restoration happen in the reverse order of the saving. This specific code is not currently used for RISC-V, but it might in the future.
Issue: #3544