Skip to content
  • Alex Bennée's avatar
    cpu-exec: update icount after each TB_EXIT · eda5f7c6
    Alex Bennée authored
    
    
    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>
    eda5f7c6