]> git.proxmox.com Git - qemu.git/blobdiff - qemu-tool.c
target-mips: Fix incorrect code and test for INSV
[qemu.git] / qemu-tool.c
index e9f7fe1e1a8662e02a6da4639d72d51ed72270b9..b46631e4227af0351adec88d46b6f384efa1fff5 100644 (file)
@@ -9,28 +9,40 @@
  * 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 "monitor.h"
 #include "qemu-timer.h"
 #include "qemu-log.h"
+#include "migration.h"
+#include "main-loop.h"
+#include "sysemu.h"
+#include "qemu_socket.h"
+#include "slirp/libslirp.h"
 
 #include <sys/time.h>
 
-QEMUClock *rt_clock;
-QEMUClock *vm_clock;
-
-FILE *logfile;
-
 struct QEMUBH
 {
     QEMUBHFunc *cb;
     void *opaque;
 };
 
+const char *qemu_get_vm_name(void)
+{
+    return NULL;
+}
+
 Monitor *cur_mon;
 
+void vm_stop(RunState state)
+{
+    abort();
+}
+
 int monitor_cur_is_qmp(void)
 {
     return 0;
@@ -56,39 +68,48 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
 {
 }
 
-int qemu_set_fd_handler2(int fd,
-                         IOCanReadHandler *fd_read_poll,
-                         IOHandler *fd_read,
-                         IOHandler *fd_write,
-                         void *opaque)
+int64_t cpu_get_clock(void)
 {
-    return 0;
+    return get_clock_realtime();
+}
+
+int64_t cpu_get_icount(void)
+{
+    abort();
 }
 
-void qemu_notify_event(void)
+void qemu_mutex_lock_iothread(void)
 {
 }
 
-QEMUTimer *qemu_new_timer(QEMUClock *clock, int scale,
-                          QEMUTimerCB *cb, void *opaque)
+void qemu_mutex_unlock_iothread(void)
 {
-    return g_malloc(1);
 }
 
-void qemu_free_timer(QEMUTimer *ts)
+int use_icount;
+
+void qemu_clock_warp(QEMUClock *clock)
 {
-    g_free(ts);
 }
 
-void qemu_del_timer(QEMUTimer *ts)
+void slirp_update_timeout(uint32_t *timeout)
 {
 }
 
-void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time)
+void slirp_select_fill(int *pnfds, fd_set *readfds,
+                       fd_set *writefds, fd_set *xfds)
 {
 }
 
-int64_t qemu_get_clock_ns(QEMUClock *clock)
+void slirp_select_poll(fd_set *readfds, fd_set *writefds,
+                       fd_set *xfds, int select_error)
+{
+}
+
+void migrate_add_blocker(Error *reason)
+{
+}
+
+void migrate_del_blocker(Error *reason)
 {
-    return 0;
 }