]> git.proxmox.com Git - mirror_qemu.git/commit
Replace qemu_gettimeofday() with g_get_real_time()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 7 Mar 2022 07:04:00 +0000 (11:04 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 08:50:37 +0000 (10:50 +0200)
commitf793dde0914ae7f2605ee22c5bbc81dc79e23eee
treeaf62c611c5d4f73d9a87bc8ec84d2ae5265e9d8d
parent287698e50fb2340d9f6436976ac701512cb7c383
Replace qemu_gettimeofday() with g_get_real_time()

GLib g_get_real_time() is an alternative to gettimeofday() which allows
to simplify our code.

For semihosting, a few bits are lost on POSIX host, but this shouldn't
be a big concern.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220307070401.171986-5-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
blockdev.c
hw/rtc/m41t80.c
hw/virtio/virtio-balloon.c
qapi/qmp-event.c
qemu-img.c
target/m68k/m68k-semi.c
target/nios2/nios2-semi.c