Revision 63255043
b/vl.c | ||
---|---|---|
601 | 601 |
char pending; |
602 | 602 |
}; |
603 | 603 |
|
604 |
static struct qemu_alarm_timer *alarm_timer; |
|
605 |
|
|
606 |
static inline int qemu_alarm_pending(void) |
|
607 |
{ |
|
608 |
return alarm_timer->pending; |
|
609 |
} |
|
610 |
|
|
604 | 611 |
static inline int alarm_has_dynticks(struct qemu_alarm_timer *t) |
605 | 612 |
{ |
606 | 613 |
return !!t->rearm; |
... | ... | |
617 | 624 |
/* TODO: MIN_TIMER_REARM_US should be optimized */ |
618 | 625 |
#define MIN_TIMER_REARM_US 250 |
619 | 626 |
|
620 |
static struct qemu_alarm_timer *alarm_timer; |
|
621 |
|
|
622 | 627 |
#ifdef _WIN32 |
623 | 628 |
|
624 | 629 |
struct qemu_alarm_win32 { |
... | ... | |
3999 | 4004 |
qemu_clock_enable(vm_clock, |
4000 | 4005 |
(cur_cpu->singlestep_enabled & SSTEP_NOTIMER) == 0); |
4001 | 4006 |
|
4002 |
if (alarm_timer->pending)
|
|
4007 |
if (qemu_alarm_pending())
|
|
4003 | 4008 |
break; |
4004 | 4009 |
if (cpu_can_run(env)) |
4005 | 4010 |
ret = qemu_cpu_exec(env); |
Also available in: Unified diff