Re: [PULL 21/30] target/riscv: Implement privilege mode filtering for cycle/instret

2024-07-22 Thread Atish Kumar Patra
On Sat, Jul 20, 2024 at 7:44 AM Peter Maydell wrote: > > On Thu, 18 Jul 2024 at 03:12, Alistair Francis wrote: > > > > From: Atish Patra > > > > Privilege mode filtering can also be emulated for cycle/instret by > > tracking host_ticks/icount during each privilege mode switch. This > > patch imp

Re: [PULL 21/30] target/riscv: Implement privilege mode filtering for cycle/instret

2024-07-20 Thread Peter Maydell
On Thu, 18 Jul 2024 at 03:12, Alistair Francis wrote: > > From: Atish Patra > > Privilege mode filtering can also be emulated for cycle/instret by > tracking host_ticks/icount during each privilege mode switch. This > patch implements that for both cycle/instret and mhpmcounters. The > first one

[PULL 21/30] target/riscv: Implement privilege mode filtering for cycle/instret

2024-07-17 Thread Alistair Francis
From: Atish Patra Privilege mode filtering can also be emulated for cycle/instret by tracking host_ticks/icount during each privilege mode switch. This patch implements that for both cycle/instret and mhpmcounters. The first one requires Smcntrpmf while the other one requires Sscofpmf to be enabl