mhartid

Machine Hart ID

Reports the unique hart-specific ID in the system.

Attributes

CSR Address

0xf14

Defining extension

  • Sm, version >= 0

Length

64-bit

Privilege Mode

M

Format

mhartid format
Figure 1. mhartid format

Field Summary

Name Location Type Reset Value

ID

63:0

RO

UNDEFINED_LEGAL

Fields

ID

Location

mhartid[63:0]

Description

hart-specific ID.

Type

RO

Read-Only

Field has a hardwired value that does not change. Writes to an RO field are ignored.

Reset value

UNDEFINED_LEGAL

Software read

This CSR may return a value that is different from what is stored in hardware.

  • Pruned

  • Original

return hartid();
return hartid();