Re: [PATCH v3 2/6] target/riscv: Don't assume PMU counters are continuous

2023-10-15 Thread Alistair Francis
On Fri, Oct 13, 2023 at 9:03 PM Rob Bradford wrote: > > Check the PMU available bitmask when checking if a counter is valid > rather than comparing the index against the number of PMUs. > > Signed-off-by: Rob Bradford > Reviewed-by: LIU Zhiwei Reviewed-by: Alistair Francis Alistair > --- >

[PATCH v3 2/6] target/riscv: Don't assume PMU counters are continuous

2023-10-13 Thread Rob Bradford
Check the PMU available bitmask when checking if a counter is valid rather than comparing the index against the number of PMUs. Signed-off-by: Rob Bradford Reviewed-by: LIU Zhiwei --- target/riscv/csr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/riscv/csr.c