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

Attempts to access non-existent CSRs are reserved #1207

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/hypervisor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,7 @@ value, obviating the need to execute an HFENCE.VVMA instruction.

=== Traps

[[sec:hcauses]]
==== Trap Cause Codes

The hypervisor extension augments the trap cause encoding.
Expand Down
10 changes: 6 additions & 4 deletions src/priv-csrs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ accesses to be intercepted. This change should be transparent to the
less-privileged software.
====

Attempts to access a non-existent CSR raise an illegal-instruction
exception. Attempts to access a CSR without appropriate privilege level
or to write a read-only register also raise illegal-instruction
exceptions. A read/write register might also contain some bits that are
Instructions that access a non-existent CSR are reserved.
Attempts to access a CSR without appropriate privilege level
raise illegal-instruction exceptions or, as described in
<<sec:hcauses>>, virtual-instruction exceptions.
Attempts to write a read-only register raise illegal-instruction exceptions.
A read/write register might also contain some bits that are
read-only, in which case writes to the read-only bits are ignored.

<<csrrwpriv>> also indicates the convention to
Expand Down
Loading