aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/images/bytefield/mnstatus.adoc27
-rw-r--r--src/rnmi.adoc5
2 files changed, 29 insertions, 3 deletions
diff --git a/src/images/bytefield/mnstatus.adoc b/src/images/bytefield/mnstatus.adoc
new file mode 100644
index 0000000..537c4a6
--- /dev/null
+++ b/src/images/bytefield/mnstatus.adoc
@@ -0,0 +1,27 @@
+[bytefield]
+----
+(defattrs :plain [:plain {:font-family "M+ 1p Fallback" :font-size 24}])
+(def row-height 40 )
+(def row-header-fn nil)
+(def left-margin 30)
+(def right-margin 30)
+(def boxes-per-row 32)
+(draw-column-headers {:height 24 :font-size 24 :labels (reverse ["0" "" "" "2" "" "3" "4" "" "" "6" "" "" "" "7" "" "" "8" "" "" "10" "11" "" "" "12" "13" "" "" "" "" "" "MXLEN-1" ""])})
+
+(draw-box (text "Reserved" {:font-style "italic"}) {:span 8})
+(draw-box (text "MNPP " {} [{:font-weight "bold"} "(WARL)"]) {:span 4})
+(draw-box (text "Reserved" {:font-style "italic"}) {:span 4})
+(draw-box (text "MNPV " {} [{:font-weight "bold"} "(WARL)"]) {:span 6})
+(draw-box (text "Reserved" {:font-style "italic"}) {:span 4})
+(draw-box "NMIE" {:span 2})
+(draw-box (text "Reserved" {:font-style "italic"}) {:span 4})
+
+(draw-box "MXLEN-13" {:span 8 :borders {}})
+(draw-box "2" {:span 4 :borders {}})
+(draw-box "3" {:span 4 :borders {}})
+(draw-box "1" {:span 6 :borders {}})
+(draw-box "3" {:span 4 :borders {}})
+(draw-box "1" {:span 2 :borders {}})
+(draw-box "3" {:span 4 :borders {}})
+
+---- \ No newline at end of file
diff --git a/src/rnmi.adoc b/src/rnmi.adoc
index 2d2ea2b..fe8cd21 100644
--- a/src/rnmi.adoc
+++ b/src/rnmi.adoc
@@ -75,9 +75,8 @@ The `mncause` CSR holds the reason for the NMI, with bit MXLEN-1 set to
1, and the NMI cause encoded in the least-significant bits or zero if
NMI causes are not supported.
-TRFcFcF & & & & & & +
-& & & & & & +
-MXLEN-13 & 2 & 3 & 1 & 3 & 1 & 3 +
+.Resumable NMI status register `mnstatus`.
+include::images/bytefield/mnstatus.adoc[]
The `mnstatus` CSR holds a two-bit field, MNPP, which on entry to the
trap handler holds the privilege mode of the interrupted context,