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

Use the external qemu-timer API instead.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2014-11-26 14:33:59 +01:00
parent 0bb0b2d2fe
commit 906b53a2de

View File

@ -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) {