Revision 6ee093c9 hw/rtl8139.c
b/hw/rtl8139.c | ||
---|---|---|
3361 | 3361 |
static inline int64_t rtl8139_get_next_tctr_time(RTL8139State *s, int64_t current_time) |
3362 | 3362 |
{ |
3363 | 3363 |
int64_t next_time = current_time + |
3364 |
muldiv64(1, ticks_per_sec, PCI_FREQUENCY);
|
|
3364 |
muldiv64(1, get_ticks_per_sec(), PCI_FREQUENCY);
|
|
3365 | 3365 |
if (next_time <= current_time) |
3366 | 3366 |
next_time = current_time + 1; |
3367 | 3367 |
return next_time; |
... | ... | |
3385 | 3385 |
|
3386 | 3386 |
curr_time = qemu_get_clock(vm_clock); |
3387 | 3387 |
|
3388 |
curr_tick = muldiv64(curr_time - s->TCTR_base, PCI_FREQUENCY, ticks_per_sec); |
|
3388 |
curr_tick = muldiv64(curr_time - s->TCTR_base, PCI_FREQUENCY, |
|
3389 |
get_ticks_per_sec()); |
|
3389 | 3390 |
|
3390 | 3391 |
if (s->TimerInt && curr_tick >= s->TimerInt) |
3391 | 3392 |
{ |
Also available in: Unified diff