summaryrefslogtreecommitdiff
path: root/accel/stubs
diff options
context:
space:
mode:
authorYang Zhong <yang.zhong@intel.com>2017-07-03 18:12:17 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-04 16:01:16 +0200
commita574cf9b417bb7692e7ec371f2091f0243f62551 (patch)
tree2522d5c032c30f9ed3c8f1a32481967a946f979d /accel/stubs
parent24d90a3cfdd30f1f6eb38363aed6c9c084f147ed (diff)
downloadqemu-a574cf9b417bb7692e7ec371f2091f0243f62551.tar.gz
tcg: add the tcg-stub.c file into accel/stubs/
If tcg is disabled, the functions in tcg-stub.c file will be called. This file is target-independent file, do not include any platform related stub functions into this file. Signed-off-by: Yang Zhong <yang.zhong@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/stubs')
-rw-r--r--accel/stubs/Makefile.objs1
-rw-r--r--accel/stubs/tcg-stub.c22
2 files changed, 23 insertions, 0 deletions
diff --git a/accel/stubs/Makefile.objs b/accel/stubs/Makefile.objs
index bd5794f222..fdfbf7332c 100644
--- a/accel/stubs/Makefile.objs
+++ b/accel/stubs/Makefile.objs
@@ -1 +1,2 @@
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
+obj-$(call lnot,$(CONFIG_TCG)) += tcg-stub.o
diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c
new file mode 100644
index 0000000000..5dd480b1a2
--- /dev/null
+++ b/accel/stubs/tcg-stub.c
@@ -0,0 +1,22 @@
+/*
+ * QEMU TCG accelerator stub
+ *
+ * Copyright Red Hat, Inc. 2013
+ *
+ * Author: Paolo Bonzini <pbonzini@redhat.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "qemu/osdep.h"
+#include "qemu-common.h"
+#include "cpu.h"
+#include "tcg/tcg.h"
+#include "exec/cpu-common.h"
+#include "exec/exec-all.h"
+
+void tb_flush(CPUState *cpu)
+{
+}