• P
    exec: drop cpu_can_do_io, just read cpu->can_do_io · 414b15c9
    Paolo Bonzini 提交于
    After commit 626cf8f4 (icount: set can_do_io outside TB execution,
    2014-12-08), can_do_io is set to 1 if not executing code.  It is
    no longer necessary to make this assumption in cpu_can_do_io.
    
    It is also possible to remove the use_icount test, simply by
    never setting cpu->can_do_io to 0 unless use_icount is true.
    
    With these changes cpu_can_do_io boils down to a read of
    cpu->can_do_io.
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    414b15c9
cpu.h 22.1 KB