提交 9c554c1c 编写于 作者: A aurel32

cuda: fix crash on Windows

Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6364 c046a42c-6fe2-441c-8c8c-71466251a162
上级 f50dc0ac
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册