diff options
| author | Alex Bennée | 2017-03-30 19:49:22 +0200 |
|---|---|---|
| committer | Alex Bennée | 2017-04-10 11:22:28 +0200 |
| commit | 243c5f77f6734776a45d50612b0f3ca2f2f6448e (patch) | |
| tree | 5e5b5cbb673ee2ef973ac2f11a6cd148d0e386dc /scripts | |
| parent | cpus: remove icount handling from qemu_tcg_cpu_thread_fn (diff) | |
| download | qemu-243c5f77f6734776a45d50612b0f3ca2f2f6448e.tar.gz qemu-243c5f77f6734776a45d50612b0f3ca2f2f6448e.tar.xz qemu-243c5f77f6734776a45d50612b0f3ca2f2f6448e.zip | |
cpus: check cpu->running in cpu_get_icount_raw()
The lifetime of current_cpu is now the lifetime of the vCPU thread.
However get_icount_raw() can apply a fudge factor if called while code
is running to take into account the current executed instruction
count.
To ensure this is always the case we also check cpu->running.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
