Use the external qemu-timer API instead. Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- target-mips/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-mips/kvm.c b/target-mips/kvm.c index 97fd51a..a761ea5 100644 --- a/target-mips/kvm.c +++ b/target-mips/kvm.c @@ -439,7 +439,7 @@ static void kvm_mips_update_state(void *opaque, int running, RunState state) } } else { /* 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, &count_resume); if (ret < 0) { -- 1.8.3.1