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

2024-05-27 Thread Alistair Francis
On Thu, Apr 11, 2024 at 9:34 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] target/riscv: fix instructions count handling in icount mode

2024-04-28 Thread Alistair Francis
On Thu, Apr 11, 2024 at 9:34 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] target/riscv: fix instructions count handling in icount mode

2024-04-11 Thread Atish Kumar Patra
On Thu, Apr 11, 2024 at 4:34 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] target/riscv: fix instructions count handling in icount mode

2024-04-11 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