On Tue, Oct 26, 2021 at 4:39 AM Atish Patra <atish.pa...@wdc.com> wrote: > > The predicate function calculates the counter index incorrectly for > hpmcounterx. Fix the counter index to reflect correct CSR number. >
Fixes: e39a8320b088 ("target/riscv: Support the Virtual Instruction fault") > Signed-off-by: Atish Patra <atish.pa...@wdc.com> > --- > target/riscv/csr.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > Reviewed-by: Bin Meng <bmeng...@gmail.com>