aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2024-06-18 13:26:45 +0200
committerAlistair Francis <alistair.francis@wdc.com>2024-06-26 23:04:11 +1000
commitc165408779ae3a5aceddc8603471b1c20e58fcae (patch)
treeeb5791e0e9506418ae68292ff386b240fbf96494 /hw
parent209b7c293585d0859396071ef00405c02aab5472 (diff)
downloadqemu-c165408779ae3a5aceddc8603471b1c20e58fcae.zip
qemu-c165408779ae3a5aceddc8603471b1c20e58fcae.tar.gz
qemu-c165408779ae3a5aceddc8603471b1c20e58fcae.tar.bz2
target/riscv: fix instructions count handling in icount mode
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 behavior which was returning an instructions count close to the number of cycles (CPI ~= 1). Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Message-ID: <20240618112649.76683-1-cleger@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions