Skip to content

Enable ZIHPM unpriviledged performance counters#29

Open
SamuelRiedel wants to merge 1 commit into
lowRISC:ibex_cosimfrom
SamuelRiedel:enable-zihpm
Open

Enable ZIHPM unpriviledged performance counters#29
SamuelRiedel wants to merge 1 commit into
lowRISC:ibex_cosimfrom
SamuelRiedel:enable-zihpm

Conversation

@SamuelRiedel
Copy link
Copy Markdown

We are adding support for the U-mode performance counters in lowRISC/ibex#2403. Therefore, we are re-enabling them here as well.

By now, we support those performance counters in Ibex so we enable
them again.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Re-enables the ZIHPM extension flag in the ISA parser to allow unprivileged performance counters (U-mode) in line with upstream Ibex support.

Changes:

  • Enable EXT_ZIHPM by default for backward compatibility.
  • Remove/replace the Ibex-specific comment that previously disabled ZIHPM.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread riscv/isa_parser.cc
@@ -36,7 +36,7 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv)
max_isa = reg_t(2) << 62;
// enable zicntr and zihpm unconditionally for backward compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants