cycleh
Upper 32 bits of cycle, RV32 only
- Address
0xC80- Group
- Unprivileged and user-level CSRs
- Privilege
URO(privileged spec CSR listing, Unprivileged Counter/Timers)- Access
- read-only; lowest privilege U (user/unprivileged)
- Address range
- Standard read-only
- XLEN
- RV32 only
- Name in riscv-unified-db
- High-half cycle counter for RDCYCLE Instruction
Privileged spec: Upper 32 bits of cycle, RV32 only
Description
Alias for M-mode CSR mcycleh.
Privilege mode access is controlled with mcounteren.CY, scounteren.CY, and hcounteren.CY as follows:
mcounteren.CY | scounteren.CY | hcounteren.CY | ||||
cycle behavior | ||||||
| S-mode | U-mode | VS-mode | VU-mode | |||
| 0 | - | - | IllegalInstruction | IllegalInstruction | IllegalInstruction | IllegalInstruction |
| 1 | 0 | 0 | read-only | IllegalInstruction | VirtualInstruction | VirtualInstruction |
| 1 | 1 | 0 | read-only | read-only | VirtualInstruction | VirtualInstruction |
| 1 | 0 | 1 | read-only | IllegalInstruction | read-only | VirtualInstruction |
| 1 | 1 | 1 | read-only | read-only | read-only | read-only |
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
COUNT | 31-0 | RO-H | 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 csrs32.csv
- riscv-unified-db: spec/std/isa/csr/cycleh.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)