Re: [PATCH v4 06/11] target/riscv: Add support for hpmcounters/hpmevents

2022-01-07 Thread Bin Meng
On Fri, Jan 7, 2022 at 10:22 AM Atish Patra wrote: > > From: Atish Patra > > With SBI PMU extension, user can use any of the available hpmcounters to > track any perf events based on the value written to mhpmevent csr. > Add read/write functionality for these csrs. > > Signed-off-by: Atish Patra

[PATCH v4 06/11] target/riscv: Add support for hpmcounters/hpmevents

2022-01-06 Thread Atish Patra
From: Atish Patra With SBI PMU extension, user can use any of the available hpmcounters to track any perf events based on the value written to mhpmevent csr. Add read/write functionality for these csrs. Signed-off-by: Atish Patra Signed-off-by: Atish Patra --- target/riscv/cpu.h | 11 +