From: Juan Quintela Date: Wed, 22 Nov 2017 08:41:57 +0000 (+0100) Subject: tcg: Fix compilation without TCG X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8f2c4cbc76cd37c22d0ed9a23b833690e6c405b2;p=qemu.git tcg: Fix compilation without TCG Commit 27266271977c started to use tb_unlock() and tlb_set_dirty() on non TCG code. Add the functions as stubs, so that builds with TCG disabled continue to compile. Signed-off-by: Juan Quintela Acked-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé [PMM: tweaked commit message] Signed-off-by: Peter Maydell --- diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c index 5dd480b1a2..ee575a8718 100644 --- a/accel/stubs/tcg-stub.c +++ b/accel/stubs/tcg-stub.c @@ -20,3 +20,11 @@ void tb_flush(CPUState *cpu) { } + +void tb_unlock(void) +{ +} + +void tlb_set_dirty(CPUState *cpu, target_ulong vaddr) +{ +}