hcontext
Hypervisor-mode context register
- Address
0x6A8- Group
- Hypervisor and VS CSRs
- Privilege
HRW(privileged spec CSR listing, Debug/Trace Registers)- Access
- read/write; lowest privilege H (hypervisor, including VS CSRs)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Hypervisor Context
Privileged spec: Hypervisor-mode context register
Description
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.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
HCONTEXT | 13-0 | RW | Alias of |
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/hcontext.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)