Skip to content

Commit

Permalink
Specify value of mode bit in null/infinite caps
Browse files Browse the repository at this point in the history
* Specify that M is 0 in both the infinite and null caps.
* Add 'Reserved' row to null/infinite cap table
* Change ref text for <<infinite-cap>> from "Infinity" to "Infinite" since that's how it is referred to elsewhere.

Fixes #13
  • Loading branch information
Timmmm committed Jan 23, 2024
1 parent 66b77c4 commit b84aae8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cap-description.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,11 @@ or 'root' capability.
| B | zeros | Base address bits
| B~E~ | zeros | Exponent bits
| Address | zeros | Capability address
| Reserved| zeros | All reserved fields
|==============================================================================

.Field values of the Infinite capability
[#infinite-cap,reftext="Infinity"]
[#infinite-cap,reftext="Infinite"]
[options=header,width="100%",align=center,width="55%",cols="1,1,3"]
|==============================================================================
| Field | Value | Comment
Expand All @@ -476,6 +477,7 @@ or 'root' capability.
| B | zeros | Base address bits
| B~E~ | zeros | Exponent bits
| Address | zeros | Capability address
| Reserved| zeros | All reserved fields
|==============================================================================

[#section_cap_representable_check]
Expand Down Expand Up @@ -520,4 +522,3 @@ bits!

Capabilities with malformed bounds are always invalid anywhere in the system
i.e. their tags are always 0.

2 changes: 2 additions & 0 deletions src/riscv-mode-integration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ include::img/cap-encoding-xlen64-mode.edn[]
not grant <<x_perm>>. In this case, the M bit is superfluous, so the encoding
may be used to support additional features in future extensions.

The M bit is 0 in both the <<null-cap>> and <<infinite-cap>> capabilities.

[#section_mode_cap_instructions]
=== Zcheri_mode Instructions

Expand Down

0 comments on commit b84aae8

Please sign in to comment.