aboutsummaryrefslogtreecommitdiff
path: root/hw/pl031.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pl031.c')
-rw-r--r--hw/pl031.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pl031.c b/hw/pl031.c
index cd8759faa8..fb5f323cb7 100644
--- a/hw/pl031.c
+++ b/hw/pl031.c
@@ -206,7 +206,7 @@ void pl031_init(uint32_t base, qemu_irq irq)
s->irq = irq;
/* ??? We assume vm_clock is zero at this point. */
qemu_get_timedate(&tm, 0);
- s->tick_offset = mktime(&tm);
+ s->tick_offset = mktimegm(&tm);
s->timer = qemu_new_timer(vm_clock, pl031_interrupt, s);
}