Skip to content
Snippets Groups Projects
Commit eda5f7c6 authored by Alex Bennée's avatar Alex Bennée
Browse files

cpu-exec: update icount after each TB_EXIT


There is no particular reason we shouldn't update the global system
icount time as we exit each TranslationBlock run. This ensures the
main-loop doesn't have to wait until we exit to the outer loop for
executed instructions to be credited to timer_state.

The prepare_icount_for_run function is slightly tweaked to match the
logic we run in cpu_loop_exec_tb.

Based on Paolo's original suggestion.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
parent 512d3c80
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment