Re: [v2 5/5] target/riscv: Implement privilege mode filtering for cycle/instret

2024-01-03 Thread Daniel Henrique Barboza
On 12/28/23 21:49, Atish Patra wrote: 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 requir

[v2 5/5] target/riscv: Implement privilege mode filtering for cycle/instret

2023-12-28 Thread 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 enabled. The cycle/instr

[v2 5/5] target/riscv: Implement privilege mode filtering for cycle/instret

2023-12-28 Thread 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 enabled. The cycle/instr