Skip to content

Commit

Permalink
Attempts to access non-existent CSRs are reserved (#1207)
Browse files Browse the repository at this point in the history
Resolves #1116
  • Loading branch information
aswaterman authored Jan 30, 2024
1 parent 737dc43 commit 246efe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/hypervisor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,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

0 comments on commit 246efe0

Please sign in to comment.