diff options
author | Claudio Fontana <cfontana@suse.de> | 2020-10-15 16:32:15 +0200 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-12-10 17:44:10 -0600 |
commit | 45e077d75174269d76efbc632419e90fdb7c0662 (patch) | |
tree | ccb3e16d0599e6b2405047f95d31a3bc079abb8c /accel/tcg/tcg-cpus-icount.h | |
parent | 2ecfc0657afa5d29a373271b342f704a1a3c6737 (diff) |
accel/tcg: split CpusAccel into three TCG variants
split up the CpusAccel tcg_cpus into three TCG variants:
tcg_cpus_rr (single threaded, round robin cpus)
tcg_cpus_icount (same as rr, but with instruction counting enabled)
tcg_cpus_mttcg (multi-threaded cpus)
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201015143217.29337-2-cfontana@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/tcg-cpus-icount.h')
-rw-r--r-- | accel/tcg/tcg-cpus-icount.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/accel/tcg/tcg-cpus-icount.h b/accel/tcg/tcg-cpus-icount.h new file mode 100644 index 0000000000..cbcf76b413 --- /dev/null +++ b/accel/tcg/tcg-cpus-icount.h @@ -0,0 +1,17 @@ +/* + * QEMU TCG Single Threaded vCPUs implementation using instruction counting + * + * Copyright 2020 SUSE LLC + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef TCG_CPUS_ICOUNT_H +#define TCG_CPUS_ICOUNT_H + +void handle_icount_deadline(void); +void prepare_icount_for_run(CPUState *cpu); +void process_icount_data(CPUState *cpu); + +#endif /* TCG_CPUS_ICOUNT_H */ |