]> Git Repo - qemu.git/blobdiff - qemu-tool.c
serial: open a null device if the CharDriverState argument is null
[qemu.git] / qemu-tool.c
index 63e205675c966887c04daf4bb7243a5cc6d08bba..c0b1cad669aad055114f2a74f646ce53235f73a5 100644 (file)
@@ -26,6 +26,10 @@ struct QEMUBH
     void *opaque;
 };
 
+void qemu_service_io(void)
+{
+}
+
 void term_printf(const char *fmt, ...)
 {
 }
@@ -77,7 +81,7 @@ int qemu_set_fd_handler2(int fd,
 
 int64_t qemu_get_clock(QEMUClock *clock)
 {
-    struct timeval tv;
-    gettimeofday(&tv, NULL);
+    qemu_timeval tv;
+    qemu_gettimeofday(&tv);
     return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
 }
This page took 0.023614 seconds and 4 git commands to generate.