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

CSub redundant? #40

Open
rmn30 opened this issue Feb 26, 2024 · 1 comment
Open

CSub redundant? #40

rmn30 opened this issue Feb 26, 2024 · 1 comment
Labels
maybe-v2 Tracking issues for possible changes for an ISAv2

Comments

@rmn30
Copy link
Collaborator

rmn30 commented Feb 26, 2024

The CSub instruction is currently functionally identical to the RISC-V's sub instruction. The only reason to keep it is to separate pointer operations from integer ones, which could become important in future ISA versions. For example:

  • capability addresses might be reduced to less than XLEN width, freeing up capability encoding bits for other uses. In this case CSub may or may not be the same as sub.
  • if capability registers were separate from integer ones (split register files).

At the very least we should add some discussion of this to the page in ISA reference.

@nwf-msr nwf-msr added the maybe-v2 Tracking issues for possible changes for an ISAv2 label Mar 4, 2024
@nwf-msr
Copy link
Contributor

nwf-msr commented Mar 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe-v2 Tracking issues for possible changes for an ISAv2
Projects
None yet
Development

No branches or pull requests

2 participants