1 #include "qemu/osdep.h"
2 #include "qapi/error.h"
3 #include "sysemu/cpu-timers.h"
5 /* icount - Instruction Counter API */
7 ICountMode use_icount
= ICOUNT_DISABLED
;
9 void icount_update(CPUState
*cpu
)
13 bool icount_configure(QemuOpts
*opts
, Error
**errp
)
16 error_setg(errp
, "cannot configure icount, TCG support not available");
20 int64_t icount_get_raw(void)
25 int64_t icount_get(void)
30 int64_t icount_to_ns(int64_t icount
)
35 int64_t icount_round(int64_t count
)
40 void icount_start_warp_timer(void)
44 void icount_account_warp_timer(void)
48 void icount_notify_exit(void)