提交 906b53a2 编写于 作者: P Paolo Bonzini

target-mips: kvm: do not use get_clock()

Use the external qemu-timer API instead.
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 0bb0b2d2
...@@ -439,7 +439,7 @@ static void kvm_mips_update_state(void *opaque, int running, RunState state) ...@@ -439,7 +439,7 @@ static void kvm_mips_update_state(void *opaque, int running, RunState state)
} }
} else { } else {
/* Set clock restore time to now */ /* Set clock restore time to now */
count_resume = get_clock(); count_resume = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);
ret = kvm_mips_put_one_reg64(cs, KVM_REG_MIPS_COUNT_RESUME, ret = kvm_mips_put_one_reg64(cs, KVM_REG_MIPS_COUNT_RESUME,
&count_resume); &count_resume);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册