Revision 74475455 hw/pcnet.c
b/hw/pcnet.c | ||
---|---|---|
1336 | 1336 |
pcnet_update_irq(s); |
1337 | 1337 |
|
1338 | 1338 |
if (!CSR_STOP(s) && !CSR_SPND(s) && !CSR_DPOLL(s)) { |
1339 |
uint64_t now = qemu_get_clock(vm_clock) * 33; |
|
1339 |
uint64_t now = qemu_get_clock_ns(vm_clock) * 33;
|
|
1340 | 1340 |
if (!s->timer || !now) |
1341 | 1341 |
s->timer = now; |
1342 | 1342 |
else { |
... | ... | |
1348 | 1348 |
CSR_POLL(s) = t; |
1349 | 1349 |
} |
1350 | 1350 |
qemu_mod_timer(s->poll_timer, |
1351 |
pcnet_get_next_poll_time(s,qemu_get_clock(vm_clock))); |
|
1351 |
pcnet_get_next_poll_time(s,qemu_get_clock_ns(vm_clock)));
|
|
1352 | 1352 |
} |
1353 | 1353 |
} |
1354 | 1354 |
|
... | ... | |
1726 | 1726 |
int i; |
1727 | 1727 |
uint16_t checksum; |
1728 | 1728 |
|
1729 |
s->poll_timer = qemu_new_timer(vm_clock, pcnet_poll_timer, s); |
|
1729 |
s->poll_timer = qemu_new_timer_ns(vm_clock, pcnet_poll_timer, s);
|
|
1730 | 1730 |
|
1731 | 1731 |
qemu_macaddr_default_if_unset(&s->conf.macaddr); |
1732 | 1732 |
s->nic = qemu_new_nic(info, &s->conf, dev->info->name, dev->id, s); |
Also available in: Unified diff