htimedelta
Delta for VS/VU-mode timer
- Address
0x605- Group
- Hypervisor and VS CSRs
- Privilege
HRW(privileged spec CSR listing, Hypervisor Counter/Timer Virtualization Registers)- Access
- read/write; lowest privilege H (hypervisor, including VS CSRs)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Hypervisor time delta
Privileged spec: Delta for VS/VU-mode timer
Description
The htimedelta CSR is a 64-bit read/write register that contains the delta
between the value of the time CSR and the value returned in VS-mode or VU-mode.
That is, reading the time CSR in VS or VU mode returns the sum of the contents
of htimedelta and the actual value of time.
Note: Because overflow is ignored when summing htimedelta and time, large values of
htimedelta may be used to represent negative time offsets.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
DELTA | 63-0 | RW | Signed delta |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/H/htimedelta.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)