xref: /openbmc/qemu/stubs/icount.c (revision c79aa350)
1 #include "qemu/osdep.h"
2 #include "qapi/error.h"
3 #include "sysemu/cpu-timers.h"
4 
5 /* icount - Instruction Counter API */
6 
7 int use_icount;
8 
9 void icount_update(CPUState *cpu)
10 {
11     abort();
12 }
13 void icount_configure(QemuOpts *opts, Error **errp)
14 {
15     /* signal error */
16     error_setg(errp, "cannot configure icount, TCG support not available");
17 }
18 int64_t icount_get_raw(void)
19 {
20     abort();
21     return 0;
22 }
23 int64_t icount_get(void)
24 {
25     abort();
26     return 0;
27 }
28 int64_t icount_to_ns(int64_t icount)
29 {
30     abort();
31     return 0;
32 }
33 int64_t icount_round(int64_t count)
34 {
35     abort();
36     return 0;
37 }
38 void icount_start_warp_timer(void)
39 {
40     abort();
41 }
42 void icount_account_warp_timer(void)
43 {
44     abort();
45 }
46 
47 void icount_notify_exit(void)
48 {
49 }
50