Revision 74475455 hw/stellaris.c

b/hw/stellaris.c
79 79
{
80 80
    int64_t tick;
81 81
    if (reset)
82
        tick = qemu_get_clock(vm_clock);
82
        tick = qemu_get_clock_ns(vm_clock);
83 83
    else
84 84
        tick = s->tick[n];
85 85

  
......
353 353
    sysbus_init_mmio(dev, 0x1000, iomemtype);
354 354

  
355 355
    s->opaque[0] = s->opaque[1] = s;
356
    s->timer[0] = qemu_new_timer(vm_clock, gptm_tick, &s->opaque[0]);
357
    s->timer[1] = qemu_new_timer(vm_clock, gptm_tick, &s->opaque[1]);
356
    s->timer[0] = qemu_new_timer_ns(vm_clock, gptm_tick, &s->opaque[0]);
357
    s->timer[1] = qemu_new_timer_ns(vm_clock, gptm_tick, &s->opaque[1]);
358 358
    register_savevm(&dev->qdev, "stellaris_gptm", -1, 1,
359 359
                    gptm_save, gptm_load, s);
360 360
    return 0;

Also available in: Unified diff