Commit 674e0199 authored by Alexandre Ghiti's avatar Alexandre Ghiti Committed by Anup Patel
Browse files

lib: sbi: Fix counter index calculation for SBI_PMU_CFG_FLAG_SKIP_MATCH



As per the SBI specification, we should "unconditionally select the first
counter from the set of counters specified by the counter_idx_base and
counter_idx_mask", so implement this behaviour.

Suggested-by: default avatarAtish Patra <atishp@atishpatra.org>
Signed-off-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
parent bdb3c42b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment