Displaying 1 result from an estimated 1 matches for "icount_time_shift".
2012 Mar 16
2
[PATCH v3] use INT64_MAX as max expiration
...= (active_timers[QEMU_TIMER_REALTIME]->expire_time -
@@ -3872,8 +3873,8 @@ int main_loop(void)
env->icount_decr.u16.low = 0;
env->icount_extra = 0;
count = qemu_next_deadline();
- count = (count + (1 << icount_time_shift) - 1)
- >> icount_time_shift;
+ count = (count >> icount_time_shift) +
+ ((count & ((1 << icount_time_shift) - 1)) > 0 ? 1 : 0);
qemu_icount += count;
decr = (coun...