Skip to content

Commit a72fd38

Browse files
clarify reserved fields in Xtval2
1 parent 972e8ff commit a72fd38

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/img/mtval2reg.edn

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
(def boxes-per-row 32)
99
(draw-column-headers {:height 20 :font-size 18 :labels (reverse ["0" "" "" "3" "4" "" "" "" "" "" "" "" "" "" "" "15" "16" "" "" "19" "20" "" "" "" "" "" "" "" "" "" "" "MXLEN-1"])})
1010

11-
(draw-box "Reserved" {:span 12})
11+
(draw-box "WPRI" {:span 12})
1212
(draw-box "TYPE" {:span 4})
13-
(draw-box "Reserved" {:span 12})
13+
(draw-box "WPRI" {:span 12})
1414
(draw-box "CAUSE" {:span 4})
1515

1616
(draw-box "MXLEN-20" {:span 12 :borders {}})

src/img/stval2reg.edn

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
(def boxes-per-row 32)
99
(draw-column-headers {:height 20 :font-size 18 :labels (reverse ["0" "" "" "3" "4" "" "" "" "" "" "" "" "" "" "" "15" "16" "" "" "19" "20" "" "" "" "" "" "" "" "" "" "" "SXLEN-1"])})
1010

11-
(draw-box "Reserved" {:span 12})
11+
(draw-box "WPRI" {:span 12})
1212
(draw-box "TYPE" {:span 4})
13-
(draw-box "Reserved" {:span 12})
13+
(draw-box "WPRI" {:span 12})
1414
(draw-box "CAUSE" {:span 4})
1515

1616
(draw-box "SXLEN-20" {:span 12 :borders {}})

src/img/vstval2reg.edn

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
(def boxes-per-row 32)
99
(draw-column-headers {:height 20 :font-size 18 :labels (reverse ["0" "" "" "3" "4" "" "" "" "" "" "" "" "" "" "" "15" "16" "" "" "19" "20" "" "" "" "" "" "" "" "" "" "" "VSXLEN-1"])})
1010

11-
(draw-box "Reserved" {:span 12})
11+
(draw-box "WPRI" {:span 12})
1212
(draw-box "TYPE" {:span 4})
13-
(draw-box "Reserved" {:span 12})
13+
(draw-box "WPRI" {:span 12})
1414
(draw-box "CAUSE" {:span 4})
1515

1616
(draw-box "VSXLEN-20" {:span 12 :borders {}})

src/riscv-integration.adoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -786,10 +786,13 @@ xref:mtval2-format[xrefstyle=short] to assist software in handling the trap.
786786
If <<mtval>> is read-only zero for CHERI exceptions then <<mtval2>> is also read-only zero
787787
for CHERI exceptions.
788788

789-
.Machine trap value register 2
789+
.Machine trap value register 2 format for CHERI faults
790790
[#mtval2-format]
791791
include::img/mtval2reg.edn[]
792792

793+
NOTE: <<mtval2>> is also used for Hypervisor guest physical addresses, and so the implemented bits must also cover that use case.
794+
If Hypervisor is not implemented then all WPRI fields in <<mtval2-format>> are read-only-zero.
795+
793796
TYPE is a CHERI-specific fault type that caused the exception while CAUSE
794797
is the cause of the fault. The possible CHERI types and causes are encoded as
795798
shown in xref:mtval2-cheri-type[xrefstyle=short] and

0 commit comments

Comments
 (0)