diff mbox series

[1/5] accel/tcg: add missing target-independent stubs

Message ID 20171030030553.21259-2-f4bug@amsat.org
State New
Headers show
Series [1/5] accel/tcg: add missing target-independent stubs | expand

Commit Message

Philippe Mathieu-Daudé Oct. 30, 2017, 3:05 a.m. UTC
missing since 44eff67341:

    LINK    x86_64-softmmu/qemu-system-x86_64
  exec.o: In function `tlb_reset_dirty_range_all':
  exec.c:1070: undefined reference to `tlb_reset_dirty'
  exec.o: In function `tcg_commit':
  exec.c:2704: undefined reference to `cpu_reloading_memory_map'
  cpus.o: In function `tcg_cpu_exec':
  cpus.c:1270: undefined reference to `cpu_exec'
  cpus.o: In function `qemu_tcg_rr_cpu_thread_fn':
  cpus.c:1374: undefined reference to `cpu_exec_step_atomic'
  cpus.o: In function `qemu_tcg_cpu_thread_fn':
  cpus.c:1490: undefined reference to `cpu_exec_step_atomic'
  cpus.o: In function `qemu_tcg_init_vcpu':
  cpus.c:1675: undefined reference to `parallel_cpus'

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 accel/stubs/tcg-stub.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
diff mbox series

Patch

diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c
index 5dd480b1a2..74ce45ea07 100644
--- a/accel/stubs/tcg-stub.c
+++ b/accel/stubs/tcg-stub.c
@@ -17,6 +17,25 @@ 
 #include "exec/cpu-common.h"
 #include "exec/exec-all.h"
 
+bool parallel_cpus;
+
 void tb_flush(CPUState *cpu)
 {
 }
+
+void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length)
+{
+}
+
+int cpu_exec(CPUState *cpu)
+{
+    return -1;
+}
+
+void cpu_exec_step_atomic(CPUState *cpu)
+{
+}
+
+void cpu_reloading_memory_map(void)
+{
+}