On Fri, Jan 7, 2022 at 10:14 AM Atish Patra <ati...@rivosinc.com> wrote:
>
> From: Atish Patra <atish.pa...@wdc.com>
>
> Currently, the predicate function for PMU related CSRs only works if
> virtualization is enabled. It also does not check mcounteren bits before
> before cycle/minstret/hpmcounterx access.
>
> Support supervisor mode access in the predicate function as well.
>
> Reviewed-by: Alistair Francis <alistair.fran...@wdc.com>
> Signed-off-by: Atish Patra <atish.pa...@wdc.com>
> Signed-off-by: Atish Patra <ati...@rivosinc.com>
> ---
>  target/riscv/csr.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 52 insertions(+)
>

Reviewed-by: Bin Meng <bmeng...@gmail.com>

Reply via email to