Hart ID Register (mhartid): 0xF14
The mhartid CSR is a 32-bit read-only register containing the integer ID
of the hardware thread running the code. This register must be readable in any
implementation. Hart IDs might not necessarily be numbered continuously in a
multiprocessor system, but at least one hart must have a hart ID of zero. Hart IDs must
be unique.
| 31 | 0 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Hart ID | ||||||||||||
| Bits | Field | Description | Single /Multi-Core | w/FPU | w/MMU |
|---|---|---|---|---|---|
| 0-31 | Hart ID | Hardware thread ID. | Read | Read | Read |