Expand description of registers and their uses#76
Open
scotws wants to merge 3 commits intoriscv-non-isa:mainfrom
Open
Expand description of registers and their uses#76scotws wants to merge 3 commits intoriscv-non-isa:mainfrom
scotws wants to merge 3 commits intoriscv-non-isa:mainfrom
Conversation
aswaterman
reviewed
Feb 28, 2022
Collaborator
|
Generally LGTM, @aswaterman do you mind having a final review for that? |
aswaterman
reviewed
Apr 1, 2022
| processors such as the ARM-32. The first register, `x0`, has a special function: | ||
| Reading it always returns 0 and writes to it are ignored. As we will see later, | ||
| this allows various tricks and simplifications. | ||
| The **instruction set architecture** (ISA) of RISC-V contains 32 registers. |
Collaborator
There was a problem hiding this comment.
The old wording was more precise. It's a true statement that the RV32I and RV64I base ISAs contain 32 registers. But the other base ISA (RV32E) has only 16 registers, and various ISA extensions (like F) increase the register count beyond 32.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Distinguish between the
x-register view and the ABI used by the programmer; include "RV32E" as reason for strange distribution of register ABI. Minor formatting changes.