qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH 20/22] Stub functions


From: Pavel Dovgaluk
Subject: [Qemu-devel] [RFC PATCH 20/22] Stub functions
Date: Tue, 1 Jul 2014 15:32:30 +0400

Stubs for new functions and objects.

Signed-off-by: Pavel Dovgalyuk <address@hidden>
---

diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
index 528e161..b90c60a
--- a/stubs/Makefile.objs
+++ b/stubs/Makefile.objs
@@ -26,6 +26,7 @@ stub-obj-y += notify-event.o
 stub-obj-y += pci-drive-hot-add.o
 stub-obj-$(CONFIG_SPICE) += qemu-chr-open-spice.o
 stub-obj-y += qtest.o
+stub-obj-y += replay.o
 stub-obj-y += reset.o
 stub-obj-y += runstate-check.o
 stub-obj-y += set-fd-handler.o
diff --git a/stubs/replay.c b/stubs/replay.c
new file mode 100644
index 0000000..368ccfd
--- /dev/null
+++ b/stubs/replay.c
@@ -0,0 +1,72 @@
+#include "qemu-common.h"
+#include "sysemu/sysemu.h"
+#include "replay/replay.h"
+#include "qemu/log.h"
+
+int replay_mode;
+int replay_icount;
+QEMUClockType rtc_clock;
+int64_t realtime_clock_replay_offset;
+
+void replay_save_clock(unsigned int kind, int64_t clock)
+{
+}
+
+int64_t replay_read_clock(unsigned int kind)
+{
+    return 0;
+}
+
+int replay_checkpoint(unsigned int checkpoint)
+{
+    return 0;
+}
+
+void replay_add_event(unsigned int event_id, void *opaque)
+{
+}
+
+void replay_add_event2(unsigned int event_id, void *opaque, void *opaque2)
+{
+}
+
+int runstate_is_running(void)
+{
+    return 0;
+}
+
+uint64_t replay_get_current_step(void)
+{
+    return 0;
+}
+
+void GCC_FMT_ATTR(2, 3) qemu_log_mask(int mask, const char *fmt, ...)
+{
+}
+
+bool replay_has_checkpoint(unsigned int checkpoint)
+{
+    return false;
+}
+
+void replay_add_bh_event(void *bh, uint64_t id)
+{
+}
+
+void replay_add_thread_event(void *opaque, void *opaque2, uint64_t id)
+{
+}
+
+int64_t replay_get_icount(void)
+{
+    return 0;
+}
+
+void replay_clock_warp(void)
+{
+}
+
+int replay_get_play_submode(void)
+{
+    return 0;
+}
diff --git a/stubs/vmstate.c b/stubs/vmstate.c
index 778bc3f..2516403 100644
--- a/stubs/vmstate.c
+++ b/stubs/vmstate.c
@@ -3,6 +3,9 @@
 
 const VMStateDescription vmstate_dummy = {};
 
+const VMStateInfo vmstate_info_bool;
+const VMStateInfo vmstate_info_int64;
+
 int vmstate_register_with_alias_id(DeviceState *dev,
                                    int instance_id,
                                    const VMStateDescription *vmsd,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]