Re: [PATCH v2] target/riscv: fix instructions count handling in icount mode

2024-06-24 Thread Alistair Francis
On Tue, Jun 18, 2024 at 9:28 PM Clément Léger wrote: > > When icount is enabled, rather than returning the virtual CPU time, we > should return the instruction count itself. Add an instructions bool > parameter to get_ticks() to correctly return icount_get_raw() when > icount_enabled() == 1 and in

Re: [PATCH v2] target/riscv: fix instructions count handling in icount mode

2024-06-19 Thread Atish Kumar Patra
On Tue, Jun 18, 2024 at 4:27 AM Clément Léger wrote: > > When icount is enabled, rather than returning the virtual CPU time, we > should return the instruction count itself. Add an instructions bool > parameter to get_ticks() to correctly return icount_get_raw() when > icount_enabled() == 1 and in

[PATCH v2] target/riscv: fix instructions count handling in icount mode

2024-06-18 Thread Clément Léger
When icount is enabled, rather than returning the virtual CPU time, we should return the instruction count itself. Add an instructions bool parameter to get_ticks() to correctly return icount_get_raw() when icount_enabled() == 1 and instruction count is queried. This will modify the existing behavi