mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 02:21:38 +00:00
Writting mhpmcounter3 (and 3H) to determine the allowed bit width has a side effect: the counter starts counting. Explicitly clear the counter right after the probe so the probing writes do not leave any persistent hardware side effect. Signed-off-by: Evgenii Prokopiev <eestelle0626@gmail.com> Link: https://lore.kernel.org/r/20260910180217.3256-1-eestelle0626@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org> Reviewed-by: Anup Patel <anup@brainfault.org>