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

2023-10-15 Thread Alistair Francis
On Thu, Oct 12, 2023 at 12:52 AM 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: Alistair Francis Alistair > --- > target/riscv/csr.c | 5 +++

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

2023-10-11 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 --- target/riscv/csr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c inde