ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

hcontext

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

Summary

This optional register may be implemented only if the H extension is implemented. If it is implemented, mcontext must also be implemented.

Syntax / Encoding

CSR 0x6a8 (S-mode, RW)

Bitfields (1)

BitsFieldDescription
13:0HCONTEXTAlias of mcontext.HCONTEXT.

Reference Notes

This optional register may be implemented only if the H extension is implemented.
If it is implemented, `mcontext` must also be implemented.

This register is only accessible in HS-Mode, M-mode and Debug Mode. If Smstateen is implemented,
then accessibility of in HS-Mode is controlled by `mstateen0[57]`.

This register is an alias of the `mcontext` register, providing access to the HCONTEXT field from HS-Mode.