mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
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:
parent
0bb0b2d2fe
commit
906b53a2de
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user