aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-18 12:16:26 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-18 12:16:26 +0000
commit9c554c1c0b01642c39232489cef8301a7858824d (patch)
tree1ab44cadac1560421d54988d0a3cf52f03199991 /hw
parentf50dc0acabf61e24f519b4e385f0cf49a2d9b2cd (diff)
cuda: fix crash on Windows
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6364 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/cuda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/cuda.c b/hw/cuda.c
index 8657b21a5e..0956354817 100644
--- a/hw/cuda.c
+++ b/hw/cuda.c
@@ -756,8 +756,8 @@ void cuda_init (int *cuda_mem_index, qemu_irq irq)
s->timers[1].index = 1;
- qemu_get_timedate(&tm, RTC_OFFSET);
- s->tick_offset = mktimegm(&tm);
+ qemu_get_timedate(&tm, 0);
+ s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET;
s->adb_poll_timer = qemu_new_timer(vm_clock, cuda_adb_poll, s);
*cuda_mem_index = cpu_register_io_memory(0, cuda_read, cuda_write, s);