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

2023-10-12 Thread LIU Zhiwei
On 2023/10/3 20:49, 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 --- target/riscv/csr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 3/3] target/riscv: Don't assume PMU counters are continuous

2023-10-03 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