-
Alex Bennée authored
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>Alex Bennée authoredThe 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>
Loading