aboutsummaryrefslogtreecommitdiff
path: root/src/priv-csrs.tex
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-31 09:15:32 +0200
committerAndrew Waterman <andrew@sifive.com>2019-08-15 16:47:45 -0700
commitcd36285d9cfc34bb878a7b7f78944972e3383394 (patch)
tree7df8d50da67e3e6551518cbd913ddebd79546183 /src/priv-csrs.tex
parent67fa6dd613d07a252d18e1ef8b5f09ca41b4ff30 (diff)
downloadriscv-isa-manual-bonzini-hpmdelta.zip
riscv-isa-manual-bonzini-hpmdelta.tar.gz
riscv-isa-manual-bonzini-hpmdelta.tar.bz2
hypervisor: add performance counter delta registersbonzini-hpmdelta
It has been requested that we add htimedelta[h] CSRs so that hosts can lie to guests about the current time, without requiring trapping and emulating. cycle is also included, since the SBI set timer callback has absolute cycles as the argument. There is no intent to add equivalent CSRs for instret and performance counters. Fixes: #298
Diffstat (limited to 'src/priv-csrs.tex')
-rw-r--r--src/priv-csrs.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/priv-csrs.tex b/src/priv-csrs.tex
index fe78bab..0b4244f 100644
--- a/src/priv-csrs.tex
+++ b/src/priv-csrs.tex
@@ -241,6 +241,11 @@ Number & Privilege & Name & Description \\
\hline
\tt 0x680 & HRW &\tt hgatp & Hypervisor guest address translation and protection. \\
\hline
+\multicolumn{4}{|c|}{Hypervisor Counter/Timer Virtualization Registers} \\
+\hline
+\tt 0xA01 & HRW &\tt htimedelta & Delta for VS/VU-mode timer. \\
+\tt 0xA81 & HRW &\tt htimedeltah & Upper 32 bits of {\tt htimedelta}, RV32I only. \\
+\hline
\multicolumn{4}{|c|}{Virtual Supervisor Registers} \\
\hline
\tt 0x200 & HRW &\tt vsstatus & Virtual supervisor status register. \\