]> git.proxmox.com Git - qemu.git/blobdiff - qemu-tool.c
target-s390x: Tidy cpu_dump_state
[qemu.git] / qemu-tool.c
index 226b6e890ec4882a0c2532566124f77cb91b10e9..18205bababe093b9582d2a4ed962f3584a895700 100644 (file)
@@ -9,6 +9,8 @@
  * This work is licensed under the terms of the GNU GPL, version 2.  See
  * the COPYING file in the top-level directory.
  *
+ * Contributions after 2012-01-13 are licensed under the terms of the
+ * GNU GPL, version 2 or (at your option) any later version.
  */
 
 #include "qemu-common.h"
 
 #include <sys/time.h>
 
-FILE *logfile;
-
 struct QEMUBH
 {
     QEMUBHFunc *cb;
     void *opaque;
 };
 
+const char *qemu_get_vm_name(void)
+{
+    return NULL;
+}
+
 Monitor *cur_mon;
 
 int monitor_cur_is_qmp(void)
@@ -57,12 +62,32 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
 {
 }
 
-int64 cpu_get_clock(void)
+int monitor_fdset_get_fd(int64_t fdset_id, int flags)
 {
-    abort();
+    return -1;
+}
+
+int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
+{
+    return -1;
+}
+
+int monitor_fdset_dup_fd_remove(int dup_fd)
+{
+    return -1;
+}
+
+int monitor_fdset_dup_fd_find(int dup_fd)
+{
+    return -1;
+}
+
+int64_t cpu_get_clock(void)
+{
+    return qemu_get_clock_ns(rt_clock);
 }
 
-int64 cpu_get_icount(void)
+int64_t cpu_get_icount(void)
 {
     abort();
 }
@@ -81,11 +106,15 @@ void qemu_clock_warp(QEMUClock *clock)
 {
 }
 
-static void __attribute__((constructor)) init_main_loop(void)
+int qemu_init_main_loop(void)
 {
     init_clocks();
     init_timer_alarm();
-    qemu_clock_enable(vm_clock, false);
+    return main_loop_init();
+}
+
+void slirp_update_timeout(uint32_t *timeout)
+{
 }
 
 void slirp_select_fill(int *pnfds, fd_set *readfds,