mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 02:21:38 +00:00
On platforms where a bit of mcountinhibit cannot be set to 1, and when on rv32, pmu_ctr_write_hw() was given value whose lower bits were close to 2^32, the write could miss the lower bit overflow. Signed-off-by: Jakub Janeczko <kuba@ev1.pl> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20261024195739.585621-1-kuba@ev1.pl Signed-off-by: Anup Patel <anup@brainfault.org>