mhartid
Hardware thread ID
- Address
0xF14- Group
- Machine-level CSRs
- Privilege
MRO(privileged spec CSR listing, Machine Information Registers)- Access
- read-only; lowest privilege M (machine)
- Address range
- Standard read-only
- Name in riscv-unified-db
- Machine Hart ID
Privileged spec: Hardware thread ID
Description
Reports the unique hart-specific ID in the system.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
ID | RV32 31-0 / RV64 63-0 | RO | hart-specific ID. |
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/mhartid.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)