Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Reflect that the CSR already exists in the Instruction Set Manual.#138

Open
radimkrcmar wants to merge 5 commits intoriscvarchive:masterfrom
radimkrcmar:improve-csr
Open

Reflect that the CSR already exists in the Instruction Set Manual.#138
radimkrcmar wants to merge 5 commits intoriscvarchive:masterfrom
radimkrcmar:improve-csr

Conversation

@radimkrcmar
Copy link
Copy Markdown

Rationale for each change is in the commit messages.

The same note could be added to all new CSRs.  Other CRSs don't mention
it because implementations are already given maximal freedom.
How the CSR is implemented is irrelevant to M-mode software.

The best UD can do is to leave the implementation details unspecified.
Implementers will know how to deal with it.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
The ISM defines the mconfigptr CSR as read-only.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
The first sentence is not correct, because the CSR can also be zero, in
which case it doesn't provide the base-address.  Do not complicate the
definition here and just refer to the ISM as it provides all relevant
information about the mconfigptr CSR.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
The mconfigptr CSR is already ratified and imposes some extra
requirements on the base address.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Explicitly mentioning the logical conclusion can make the specification
a bit easier to interpret.

Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant