aboutsummaryrefslogtreecommitdiff
path: root/src/priv-csrs.tex
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2019-03-12 22:39:42 -0700
committerAndrew Waterman <andrew@sifive.com>2019-03-12 22:39:42 -0700
commitcfc4de0136d44c6a56e0c0c97aec038a75e55eff (patch)
tree97b58c30cf207c0f8c1b24d15397488d5e0182ba /src/priv-csrs.tex
parentceb9d837f6377040f63ffd3b95eb86b139cb29ef (diff)
downloadriscv-isa-manual-cfc4de0136d44c6a56e0c0c97aec038a75e55eff.zip
riscv-isa-manual-cfc4de0136d44c6a56e0c0c97aec038a75e55eff.tar.gz
riscv-isa-manual-cfc4de0136d44c6a56e0c0c97aec038a75e55eff.tar.bz2
Reformat CSR address map table
Closes #293
Diffstat (limited to 'src/priv-csrs.tex')
-rw-r--r--src/priv-csrs.tex68
1 files changed, 39 insertions, 29 deletions
diff --git a/src/priv-csrs.tex b/src/priv-csrs.tex
index 714c3c2..410b2e7 100644
--- a/src/priv-csrs.tex
+++ b/src/priv-csrs.tex
@@ -44,47 +44,57 @@ less-privileged software.
\begin{tabular}{|c|c|c|c|l|}
\hline
\multicolumn{3}{|c|}{CSR Address} & Hex & \multicolumn{1}{c|}{Use and Accessibility}\\ \cline{1-3}
-[11:10] & [9:8] & [7:6] & & \\
+[11:10] & [9:8] & [7:4] & & \\
\hline
\multicolumn{5}{|c|}{User CSRs} \\
\hline
-\tt 00 &\tt 00 &\tt XX & \tt 0x000-0x0FF & Standard read/write \\
-\tt 01 &\tt 00 &\tt XX & \tt 0x400-0x4FF & Standard read/write \\
-\tt 10 &\tt 00 &\tt XX & \tt 0x800-0x8FF & Custom read/write \\
-\tt 11 &\tt 00 &\tt 00-10 & \tt 0xC00-0xCBF & Standard read-only \\
-\tt 11 &\tt 00 &\tt 11 & \tt 0xCC0-0xCFF & Custom read-only \\
+\tt 00 &\tt 00 &\tt XXXX & \tt 0x000-0x0FF & Standard read/write \\
+\tt 01 &\tt 00 &\tt XXXX & \tt 0x400-0x4FF & Standard read/write \\
+\tt 10 &\tt 00 &\tt XXXX & \tt 0x800-0x8FF & Custom read/write \\
+\tt 11 &\tt 00 &\tt 0XXX & \tt 0xC00-0xC7F & Standard read-only \\
+\tt 11 &\tt 00 &\tt 10XX & \tt 0xC80-0xCBF & Standard read-only \\
+\tt 11 &\tt 00 &\tt 11XX & \tt 0xCC0-0xCFF & Custom read-only \\
\hline
\multicolumn{5}{|c|}{Supervisor CSRs} \\
\hline
-\tt 00 &\tt 01 &\tt XX & \tt 0x100-0x1FF & Standard read/write \\
-\tt 01 &\tt 01 &\tt 00-10 & \tt 0x500-0x5BF & Standard read/write \\
-\tt 01 &\tt 01 &\tt 11 & \tt 0x5C0-0x5FF & Custom read/write \\
-\tt 10 &\tt 01 &\tt 00-10 & \tt 0x900-0x9BF & Standard read/write \\
-\tt 10 &\tt 01 &\tt 11 & \tt 0x9C0-0x9FF & Custom read/write \\
-\tt 11 &\tt 01 &\tt 00-10 & \tt 0xD00-0xDBF & Standard read-only \\
-\tt 11 &\tt 01 &\tt 11 & \tt 0xDC0-0xDFF & Custom read-only \\
+\tt 00 &\tt 01 &\tt XXXX & \tt 0x100-0x1FF & Standard read/write \\
+\tt 01 &\tt 01 &\tt 0XXX & \tt 0x500-0x57F & Standard read/write \\
+\tt 01 &\tt 01 &\tt 10XX & \tt 0x580-0x5BF & Standard read/write \\
+\tt 01 &\tt 01 &\tt 11XX & \tt 0x5C0-0x5FF & Custom read/write \\
+\tt 10 &\tt 01 &\tt 0XXX & \tt 0x900-0x97F & Standard read/write \\
+\tt 10 &\tt 01 &\tt 10XX & \tt 0x980-0x9BF & Standard read/write \\
+\tt 10 &\tt 01 &\tt 11XX & \tt 0x9C0-0x9FF & Custom read/write \\
+\tt 11 &\tt 01 &\tt 0XXX & \tt 0xD00-0xD7F & Standard read-only \\
+\tt 11 &\tt 01 &\tt 10XX & \tt 0xD80-0xDBF & Standard read-only \\
+\tt 11 &\tt 01 &\tt 11XX & \tt 0xDC0-0xDFF & Custom read-only \\
\hline
\multicolumn{5}{|c|}{Hypervisor CSRs} \\
\hline
-\tt 00 &\tt 10 &\tt XX & \tt 0x200-0x2FF & Standard read/write \\
-\tt 01 &\tt 10 &\tt 00-10 & \tt 0x600-0x6BF & Standard read/write \\
-\tt 01 &\tt 10 &\tt 11 & \tt 0x6C0-0x6FF & Custom read/write \\
-\tt 10 &\tt 10 &\tt 00-10 & \tt 0xA00-0xABF & Standard read/write \\
-\tt 10 &\tt 10 &\tt 11 & \tt 0xAC0-0xAFF & Custom read/write \\
-\tt 11 &\tt 10 &\tt 00-10 & \tt 0xE00-0xEBF & Standard read-only \\
-\tt 11 &\tt 10 &\tt 11 & \tt 0xEC0-0xEFF & Custom read-only \\
+\tt 00 &\tt 10 &\tt XXXX & \tt 0x200-0x2FF & Standard read/write \\
+\tt 01 &\tt 10 &\tt 0XXX & \tt 0x600-0x67F & Standard read/write \\
+\tt 01 &\tt 10 &\tt 10XX & \tt 0x680-0x6BF & Standard read/write \\
+\tt 01 &\tt 10 &\tt 11XX & \tt 0x6C0-0x6FF & Custom read/write \\
+\tt 10 &\tt 10 &\tt 0XXX & \tt 0xA00-0xA7F & Standard read/write \\
+\tt 10 &\tt 10 &\tt 10XX & \tt 0xA80-0xABF & Standard read/write \\
+\tt 10 &\tt 10 &\tt 11XX & \tt 0xAC0-0xAFF & Custom read/write \\
+\tt 11 &\tt 10 &\tt 0XXX & \tt 0xE00-0xE7F & Standard read-only \\
+\tt 11 &\tt 10 &\tt 10XX & \tt 0xE80-0xEBF & Standard read-only \\
+\tt 11 &\tt 10 &\tt 11XX & \tt 0xEC0-0xEFF & Custom read-only \\
\hline
\multicolumn{5}{|c|}{Machine CSRs} \\
\hline
-\tt 00 &\tt 11 &\tt XX & \tt 0x300-0x3FF & Standard read/write \\
-\tt 01 &\tt 11 &\tt 00-10 & \tt 0x700-0x79F & Standard read/write \\
-\tt 01 &\tt 11 &\tt 10 & \tt 0x7A0-0x7AF & Standard read/write debug CSRs \\
-\tt 01 &\tt 11 &\tt 10 & \tt 0x7B0-0x7BF & Debug-mode-only CSRs \\
-\tt 01 &\tt 11 &\tt 11 & \tt 0x7C0-0x7FF & Custom read/write \\
-\tt 10 &\tt 11 &\tt 00-10 & \tt 0xB00-0xBBF & Standard read/write \\
-\tt 10 &\tt 11 &\tt 11 & \tt 0xBC0-0xBFF & Custom read/write \\
-\tt 11 &\tt 11 &\tt 00-10 & \tt 0xF00-0xFBF & Standard read-only \\
-\tt 11 &\tt 11 &\tt 11 & \tt 0xFC0-0xFFF & Custom read-only \\
+\tt 00 &\tt 11 &\tt XXXX & \tt 0x300-0x3FF & Standard read/write \\
+\tt 01 &\tt 11 &\tt 0XXX & \tt 0x700-0x77F & Standard read/write \\
+\tt 01 &\tt 11 &\tt 100X & \tt 0x780-0x79F & Standard read/write \\
+\tt 01 &\tt 11 &\tt 1010 & \tt 0x7A0-0x7AF & Standard read/write debug CSRs \\
+\tt 01 &\tt 11 &\tt 1011 & \tt 0x7B0-0x7BF & Debug-mode-only CSRs \\
+\tt 01 &\tt 11 &\tt 11XX & \tt 0x7C0-0x7FF & Custom read/write \\
+\tt 10 &\tt 11 &\tt 0XXX & \tt 0xB00-0xB7F & Standard read/write \\
+\tt 10 &\tt 11 &\tt 10XX & \tt 0xB80-0xBBF & Standard read/write \\
+\tt 10 &\tt 11 &\tt 11XX & \tt 0xBC0-0xBFF & Custom read/write \\
+\tt 11 &\tt 11 &\tt 0XXX & \tt 0xF00-0xF7F & Standard read-only \\
+\tt 11 &\tt 11 &\tt 10XX & \tt 0xF80-0xFBF & Standard read-only \\
+\tt 11 &\tt 11 &\tt 11XX & \tt 0xFC0-0xFFF & Custom read-only \\
\hline
\end{tabular}
\end{center}