Skip to content
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

Does riscv allow vector load/store access the same device address multiple times? #1741

Open
AlexGJL opened this issue Nov 25, 2024 · 2 comments

Comments

@AlexGJL
Copy link

AlexGJL commented Nov 25, 2024

Does riscv allow vector load/store access the same device address multiple times like arm? it seems not easy to deal exception for hardware if not allowed.

@gfavor
Copy link
Collaborator

gfavor commented Nov 25, 2024

See the "Precise vector traps" sub-section in the "Exception Handling" of the RVV spec - where it talks about what is and isn't allowed with respect to non-idempotent regions.

@aswaterman
Copy link
Member

Note also that RVV is a bit different than SVE in this regard: RISC-V has the vstart CSR, so can restart an instruction partway through at the position of the exception, whereas SVE does not have an equivalent feature and so must restart at the beginning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants