]> Git Repo - qemu.git/commit - cpus.c
cpus: check cpu->running in cpu_get_icount_raw()
authorAlex Bennée <[email protected]>
Thu, 30 Mar 2017 17:49:22 +0000 (18:49 +0100)
committerAlex Bennée <[email protected]>
Mon, 10 Apr 2017 09:22:28 +0000 (10:22 +0100)
commit243c5f77f6734776a45d50612b0f3ca2f2f6448e
tree5e5b5cbb673ee2ef973ac2f11a6cd148d0e386dc
parentbf51c7206facff628df24c5499ace9c97c503962
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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
cpus.c
This page took 0.024978 seconds and 4 git commands to generate.