RISC-V: Linux: Imply Zicntr from the IMA base behavior by a4lg · Pull Request #1806 · rust-lang/stdarch (original) (raw)

As the author confirmed as in https://lists.infradead.org/pipermail/linux-riscv/2025-May/070844.html, runtime detection of the Zicntr extension (as in the Linux kernel 6.15) is currently (and technically) redundant on the current base IMA behavior (although can be meaningful if new base behavior is added).

This commit implies the Zicntr extension from the base IMA behavior.

Note

Because I'm preparing riscv_hwprobe + Linux kernel 6.15 support PR and it depends on whether this change is acceptable, I consider this PR has higher priority than my other PRs (#1797 and #1798).