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

Integrating vector and CHERI for RISC-V #365

Merged
merged 9 commits into from
Sep 16, 2024

Conversation

andresag01
Copy link
Collaborator

@andresag01 andresag01 commented Sep 13, 2024

This PR has the following changes:

  • Remove all outdated notes regarding CHERI and vector
  • Remove pre-existing and incomplete vector instruction listings that were ifdef out
  • Remove adoc defines to conditionally build the CHERI specification with/without vector
  • Add a section describing how the RISC-V vector extension integrates with Zcheripurecap and Zcherihybrid:
    • Vector registers cannot hold capabilities with tag=1
    • Vector memory accesses are authorized by either ddc or a capability in a c register depending on the CHERI mode
    • Vector has all the usual memory access exceptions, but only body and active elements may give rise to out-of-bounds exceptions i.e. elements that are masked off, before vstart or after vl do not trap

Fixes #359

tariqkurd-repo and others added 2 commits September 13, 2024 14:50
Signed-off-by: Tariq Kurd <tariqandlaura@gmail.com>
tariqkurd-repo and others added 2 commits September 16, 2024 09:34
Signed-off-by: Tariq Kurd <tariqandlaura@gmail.com>
@tariqkurd-repo tariqkurd-repo merged commit e74f2ee into riscv:main Sep 16, 2024
3 checks passed
tariqkurd-repo added a commit to tariqkurd-repo/riscv-cheri that referenced this pull request Oct 9, 2024
This PR has the following changes:
* Remove all outdated notes regarding CHERI and vector
* Remove pre-existing and incomplete vector instruction listings that
were `ifdef` out
* Remove adoc defines to conditionally build the CHERI specification
with/without vector
* Add a section describing how the RISC-V vector extension integrates
with Zcheripurecap and Zcherihybrid:
    * Vector registers cannot hold capabilities with tag=1
* Vector memory accesses are authorized by either `ddc` or a capability
in a **c** register depending on the CHERI mode
* Vector has all the usual memory access exceptions, but only _body_ and
_active_ elements may give rise to out-of-bounds exceptions i.e.
elements that are masked off, before vstart or after vl do not trap

Fixes riscv#359

---------

Signed-off-by: Tariq Kurd <tariqandlaura@gmail.com>
Co-authored-by: Tariq Kurd <tariq.kurd@codasip.com>
Co-authored-by: Tariq Kurd <tariqandlaura@gmail.com>
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

Successfully merging this pull request may close these issues.

Add section on vector support
4 participants