]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/timer/sun4v-rtc.c
target-sparc: move common cpu initialisation routines to sparc64.c
[mirror_qemu.git] / hw / timer / sun4v-rtc.c
index 82e9e1437b8893bf1db9d4d943b32e055505ea0e..310523225fd546c9dac35af0db05914ddba72507 100644 (file)
@@ -36,7 +36,7 @@ typedef struct Sun4vRtc {
 static uint64_t sun4v_rtc_read(void *opaque, hwaddr addr,
                                 unsigned size)
 {
-    uint64_t val = qemu_clock_get_ms(QEMU_CLOCK_REALTIME) / 1000;
+    uint64_t val = get_clock_realtime() / NANOSECONDS_PER_SECOND;
     if (!(addr & 4ULL)) {
         /* accessing the high 32 bits */
         val >>= 32;