ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 903 microarchs · 15,772 chips · 105 sources
Arch:
Tier:

htimedelta

T1 riscv register register
Hypervisor time delta
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (H)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeS
ExtensionsH

Summary

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.

Syntax / Encoding

CSR 0x605 (S-mode, RW)

Bitfields (1)

BitsFieldDescription
63:0DELTASigned delta

Reference Notes

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.