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

hcounteren

T1 riscv register register
Hypervisor Counter Enable
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

Together with scounteren, delegates control of the hardware performance-monitoring counters to VS/VU-mode

Syntax / Encoding

CSR 0x606 (S-mode, RW)

Bitfields (32)

BitsFieldDescription
31HPM31When all of scounteren.HPM31, mcounteren.HPM31, and hcounteren.HPM31 are set, the hpmcounter31 CSR (an alias of mhpmcounter31) is accessible to VU-mode. When mcounteren.HPM31 and hcounteren.HPM31 are set, the hpmcounter31 CSR (an alias of mhpmcounter31) is accessible to VS-mode. When hcounteren.HPM31 is clear and mco
30HPM30When all of scounteren.HPM30, mcounteren.HPM30, and hcounteren.HPM30 are set, the hpmcounter30 CSR (an alias of mhpmcounter30) is accessible to VU-mode. When mcounteren.HPM30 and hcounteren.HPM30 are set, the hpmcounter30 CSR (an alias of mhpmcounter30) is accessible to VS-mode. When hcounteren.HPM30 is clear and mco
29HPM29When all of scounteren.HPM29, mcounteren.HPM29, and hcounteren.HPM29 are set, the hpmcounter29 CSR (an alias of mhpmcounter29) is accessible to VU-mode. When mcounteren.HPM29 and hcounteren.HPM29 are set, the hpmcounter29 CSR (an alias of mhpmcounter29) is accessible to VS-mode. When hcounteren.HPM29 is clear and mco
28HPM28When all of scounteren.HPM28, mcounteren.HPM28, and hcounteren.HPM28 are set, the hpmcounter28 CSR (an alias of mhpmcounter28) is accessible to VU-mode. When mcounteren.HPM28 and hcounteren.HPM28 are set, the hpmcounter28 CSR (an alias of mhpmcounter28) is accessible to VS-mode. When hcounteren.HPM28 is clear and mco
27HPM27When all of scounteren.HPM27, mcounteren.HPM27, and hcounteren.HPM27 are set, the hpmcounter27 CSR (an alias of mhpmcounter27) is accessible to VU-mode. When mcounteren.HPM27 and hcounteren.HPM27 are set, the hpmcounter27 CSR (an alias of mhpmcounter27) is accessible to VS-mode. When hcounteren.HPM27 is clear and mco
26HPM26When all of scounteren.HPM26, mcounteren.HPM26, and hcounteren.HPM26 are set, the hpmcounter26 CSR (an alias of mhpmcounter26) is accessible to VU-mode. When mcounteren.HPM26 and hcounteren.HPM26 are set, the hpmcounter26 CSR (an alias of mhpmcounter26) is accessible to VS-mode. When hcounteren.HPM26 is clear and mco
25HPM25When all of scounteren.HPM25, mcounteren.HPM25, and hcounteren.HPM25 are set, the hpmcounter25 CSR (an alias of mhpmcounter25) is accessible to VU-mode. When mcounteren.HPM25 and hcounteren.HPM25 are set, the hpmcounter25 CSR (an alias of mhpmcounter25) is accessible to VS-mode. When hcounteren.HPM25 is clear and mco
24HPM24When all of scounteren.HPM24, mcounteren.HPM24, and hcounteren.HPM24 are set, the hpmcounter24 CSR (an alias of mhpmcounter24) is accessible to VU-mode. When mcounteren.HPM24 and hcounteren.HPM24 are set, the hpmcounter24 CSR (an alias of mhpmcounter24) is accessible to VS-mode. When hcounteren.HPM24 is clear and mco
23HPM23When all of scounteren.HPM23, mcounteren.HPM23, and hcounteren.HPM23 are set, the hpmcounter23 CSR (an alias of mhpmcounter23) is accessible to VU-mode. When mcounteren.HPM23 and hcounteren.HPM23 are set, the hpmcounter23 CSR (an alias of mhpmcounter23) is accessible to VS-mode. When hcounteren.HPM23 is clear and mco
22HPM22When all of scounteren.HPM22, mcounteren.HPM22, and hcounteren.HPM22 are set, the hpmcounter22 CSR (an alias of mhpmcounter22) is accessible to VU-mode. When mcounteren.HPM22 and hcounteren.HPM22 are set, the hpmcounter22 CSR (an alias of mhpmcounter22) is accessible to VS-mode. When hcounteren.HPM22 is clear and mco
21HPM21When all of scounteren.HPM21, mcounteren.HPM21, and hcounteren.HPM21 are set, the hpmcounter21 CSR (an alias of mhpmcounter21) is accessible to VU-mode. When mcounteren.HPM21 and hcounteren.HPM21 are set, the hpmcounter21 CSR (an alias of mhpmcounter21) is accessible to VS-mode. When hcounteren.HPM21 is clear and mco
20HPM20When all of scounteren.HPM20, mcounteren.HPM20, and hcounteren.HPM20 are set, the hpmcounter20 CSR (an alias of mhpmcounter20) is accessible to VU-mode. When mcounteren.HPM20 and hcounteren.HPM20 are set, the hpmcounter20 CSR (an alias of mhpmcounter20) is accessible to VS-mode. When hcounteren.HPM20 is clear and mco
19HPM19When all of scounteren.HPM19, mcounteren.HPM19, and hcounteren.HPM19 are set, the hpmcounter19 CSR (an alias of mhpmcounter19) is accessible to VU-mode. When mcounteren.HPM19 and hcounteren.HPM19 are set, the hpmcounter19 CSR (an alias of mhpmcounter19) is accessible to VS-mode. When hcounteren.HPM19 is clear and mco
18HPM18When all of scounteren.HPM18, mcounteren.HPM18, and hcounteren.HPM18 are set, the hpmcounter18 CSR (an alias of mhpmcounter18) is accessible to VU-mode. When mcounteren.HPM18 and hcounteren.HPM18 are set, the hpmcounter18 CSR (an alias of mhpmcounter18) is accessible to VS-mode. When hcounteren.HPM18 is clear and mco
17HPM17When all of scounteren.HPM17, mcounteren.HPM17, and hcounteren.HPM17 are set, the hpmcounter17 CSR (an alias of mhpmcounter17) is accessible to VU-mode. When mcounteren.HPM17 and hcounteren.HPM17 are set, the hpmcounter17 CSR (an alias of mhpmcounter17) is accessible to VS-mode. When hcounteren.HPM17 is clear and mco
16HPM16When all of scounteren.HPM16, mcounteren.HPM16, and hcounteren.HPM16 are set, the hpmcounter16 CSR (an alias of mhpmcounter16) is accessible to VU-mode. When mcounteren.HPM16 and hcounteren.HPM16 are set, the hpmcounter16 CSR (an alias of mhpmcounter16) is accessible to VS-mode. When hcounteren.HPM16 is clear and mco
15HPM15When all of scounteren.HPM15, mcounteren.HPM15, and hcounteren.HPM15 are set, the hpmcounter15 CSR (an alias of mhpmcounter15) is accessible to VU-mode. When mcounteren.HPM15 and hcounteren.HPM15 are set, the hpmcounter15 CSR (an alias of mhpmcounter15) is accessible to VS-mode. When hcounteren.HPM15 is clear and mco
14HPM14When all of scounteren.HPM14, mcounteren.HPM14, and hcounteren.HPM14 are set, the hpmcounter14 CSR (an alias of mhpmcounter14) is accessible to VU-mode. When mcounteren.HPM14 and hcounteren.HPM14 are set, the hpmcounter14 CSR (an alias of mhpmcounter14) is accessible to VS-mode. When hcounteren.HPM14 is clear and mco
13HPM13When all of scounteren.HPM13, mcounteren.HPM13, and hcounteren.HPM13 are set, the hpmcounter13 CSR (an alias of mhpmcounter13) is accessible to VU-mode. When mcounteren.HPM13 and hcounteren.HPM13 are set, the hpmcounter13 CSR (an alias of mhpmcounter13) is accessible to VS-mode. When hcounteren.HPM13 is clear and mco
12HPM12When all of scounteren.HPM12, mcounteren.HPM12, and hcounteren.HPM12 are set, the hpmcounter12 CSR (an alias of mhpmcounter12) is accessible to VU-mode. When mcounteren.HPM12 and hcounteren.HPM12 are set, the hpmcounter12 CSR (an alias of mhpmcounter12) is accessible to VS-mode. When hcounteren.HPM12 is clear and mco
11HPM11When all of scounteren.HPM11, mcounteren.HPM11, and hcounteren.HPM11 are set, the hpmcounter11 CSR (an alias of mhpmcounter11) is accessible to VU-mode. When mcounteren.HPM11 and hcounteren.HPM11 are set, the hpmcounter11 CSR (an alias of mhpmcounter11) is accessible to VS-mode. When hcounteren.HPM11 is clear and mco
10HPM10When all of scounteren.HPM10, mcounteren.HPM10, and hcounteren.HPM10 are set, the hpmcounter10 CSR (an alias of mhpmcounter10) is accessible to VU-mode. When mcounteren.HPM10 and hcounteren.HPM10 are set, the hpmcounter10 CSR (an alias of mhpmcounter10) is accessible to VS-mode. When hcounteren.HPM10 is clear and mco
9HPM9When all of scounteren.HPM9, mcounteren.HPM9, and hcounteren.HPM9 are set, the hpmcounter9 CSR (an alias of mhpmcounter9) is accessible to VU-mode. When mcounteren.HPM9 and hcounteren.HPM9 are set, the hpmcounter9 CSR (an alias of mhpmcounter9) is accessible to VS-mode. When hcounteren.HPM9 is clear and mcounteren.HP
8HPM8When all of scounteren.HPM8, mcounteren.HPM8, and hcounteren.HPM8 are set, the hpmcounter8 CSR (an alias of mhpmcounter8) is accessible to VU-mode. When mcounteren.HPM8 and hcounteren.HPM8 are set, the hpmcounter8 CSR (an alias of mhpmcounter8) is accessible to VS-mode. When hcounteren.HPM8 is clear and mcounteren.HP
7HPM7When all of scounteren.HPM7, mcounteren.HPM7, and hcounteren.HPM7 are set, the hpmcounter7 CSR (an alias of mhpmcounter7) is accessible to VU-mode. When mcounteren.HPM7 and hcounteren.HPM7 are set, the hpmcounter7 CSR (an alias of mhpmcounter7) is accessible to VS-mode. When hcounteren.HPM7 is clear and mcounteren.HP
6HPM6When all of scounteren.HPM6, mcounteren.HPM6, and hcounteren.HPM6 are set, the hpmcounter6 CSR (an alias of mhpmcounter6) is accessible to VU-mode. When mcounteren.HPM6 and hcounteren.HPM6 are set, the hpmcounter6 CSR (an alias of mhpmcounter6) is accessible to VS-mode. When hcounteren.HPM6 is clear and mcounteren.HP
5HPM5When all of scounteren.HPM5, mcounteren.HPM5, and hcounteren.HPM5 are set, the hpmcounter5 CSR (an alias of mhpmcounter5) is accessible to VU-mode. When mcounteren.HPM5 and hcounteren.HPM5 are set, the hpmcounter5 CSR (an alias of mhpmcounter5) is accessible to VS-mode. When hcounteren.HPM5 is clear and mcounteren.HP
4HPM4When all of scounteren.HPM4, mcounteren.HPM4, and hcounteren.HPM4 are set, the hpmcounter4 CSR (an alias of mhpmcounter4) is accessible to VU-mode. When mcounteren.HPM4 and hcounteren.HPM4 are set, the hpmcounter4 CSR (an alias of mhpmcounter4) is accessible to VS-mode. When hcounteren.HPM4 is clear and mcounteren.HP
3HPM3When all of scounteren.HPM3, mcounteren.HPM3, and hcounteren.HPM3 are set, the hpmcounter3 CSR (an alias of mhpmcounter3) is accessible to VU-mode. When mcounteren.HPM3 and hcounteren.HPM3 are set, the hpmcounter3 CSR (an alias of mhpmcounter3) is accessible to VS-mode. When hcounteren.HPM3 is clear and mcounteren.HP
2IRWhen all of scounteren.IR, mcounteren.IR, and hcounteren.IR are set, the instret CSR (an alias of minstret) is accessible to VU-mode. When mcounteren.IR and hcounteren.IR are set, the instret CSR (an alias of minstret) is accessible to VS-mode. When hcounteren.IR is clear and mcounteren.IR is set, then any access to
1TMWhen all of scounteren.TM, mcounteren.TM, and hcounteren.TM are set, the time CSR (an alias of mtime memory-mapped CSR) is accessible to VU-mode. When mcounteren.TM and hcounteren.TM are set, the time CSR (an alias of mtime) is accessible to VS-mode. When hcounteren.TM is clear and mcounteren.TM is set, then any acce
0CYWhen all of scounteren.CY, mcounteren.CY, and hcounteren.CY are set, the cycle CSR (an alias of mcycle) is accessible to VU-mode. When mcounteren.CY and hcounteren.CY are set, the cycle CSR (an alias of mcycle) is accessible to VS-mode. When hcounteren.CY is clear and mcounteren.CY is set, then any access to cycle in