]> git.proxmox.com Git - qemu.git/blobdiff - hw/misc/macio/macio.c
aio / timers: Switch entire codebase to the new timer API
[qemu.git] / hw / misc / macio / macio.c
index c0d0bf72875ae3462ceace78fa0c357f8c176b28..9cc33d8f96a98e9002375fe318a20b9380b34352 100644 (file)
@@ -245,10 +245,10 @@ static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
 
     switch (addr) {
     case 0x38:
-        value = qemu_get_clock_ns(vm_clock);
+        value = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
         break;
     case 0x3c:
-        value = qemu_get_clock_ns(vm_clock) >> 32;
+        value = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) >> 32;
         break;
     }