diff options
author | Artyom Tarasenko <atar4qemu@gmail.com> | 2016-09-29 14:02:19 +0200 |
---|---|---|
committer | Artyom Tarasenko <atar4qemu@gmail.com> | 2017-01-18 22:03:44 +0100 |
commit | fff54d2269de32d09458f86d111eade917137835 (patch) | |
tree | 75942761d49e16af13a4ddf96a3730f92fae36f0 /hw/timer/sun4v-rtc.c | |
parent | a0e893039cf2ce0aacbc8959bc4201cdd192986c (diff) |
target-sparc: move common cpu initialisation routines to sparc64.c
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'hw/timer/sun4v-rtc.c')
-rw-r--r-- | hw/timer/sun4v-rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/sun4v-rtc.c b/hw/timer/sun4v-rtc.c index 82e9e1437b..310523225f 100644 --- a/hw/timer/sun4v-rtc.c +++ b/hw/timer/sun4v-rtc.c @@ -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; |