xref: /qemu/accel/tcg/tcg-accel-ops-icount.h (revision ab930e80)
1 /*
2  * QEMU TCG Single Threaded vCPUs implementation using instruction counting
3  *
4  * Copyright 2020 SUSE LLC
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  */
9 
10 #ifndef TCG_ACCEL_OPS_ICOUNT_H
11 #define TCG_ACCEL_OPS_ICOUNT_H
12 
13 void icount_handle_deadline(void);
14 void icount_prepare_for_run(CPUState *cpu, int64_t cpu_budget);
15 int64_t icount_percpu_budget(int cpu_count);
16 void icount_process_data(CPUState *cpu);
17 
18 void icount_handle_interrupt(CPUState *cpu, int mask);
19 
20 #endif /* TCG_ACCEL_OPS_ICOUNT_H */
21