minstreth

Machine Instructions Retired Counter

Upper half of 64-bit instructions retired counters.

See minstret for details.

Attributes

Defining Extension

  • Zicntr, version >= 0

CSR Address

0xb02

Length

32-bit

Privilege Mode

M

Format

minstreth format
Figure 1. minstreth format

Field Summary

Name Location Type Reset Value

COUNT

31:0

RW-H

UNDEFINED_LEGAL

Fields

COUNT

Location

31:0

Description

Instructions retired counter

Upper half of minstret.

Type

RW-H

Reset value

UNDEFINED_LEGAL

Software write

This CSR may store a value that is different from what software attempts to write.

When a software write occurs (e.g., through csrrw), the following determines the written value:

COUNT = CSR[mcycle].COUNT = {csr_value.COUNT[31:0], CSR[minstret].COUNT[31:0]};
return csr_value.COUNT;

Software read

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

return CSR[minstret].COUNT[63:32];