Commit 512d3c80 authored by Alex Bennée's avatar Alex Bennée
Browse files

cpus: introduce cpu_update_icount helper


By holding off updates to timer_state.qemu_icount we can run into
trouble when the non-vCPU thread needs to know the time. This helper
ensures we atomically update timers_state.qemu_icount based on what
has been currently executed.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
parent e4cd9657
No related merge requests found
Showing with 22 additions and 2 deletions
+22 -2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment