From 8f2c4cbc76cd37c22d0ed9a23b833690e6c405b2 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 22 Nov 2017 09:41:57 +0100 Subject: tcg: Fix compilation without TCG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- accel/stubs/tcg-stub.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'accel/stubs') 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) +{ +} -- cgit v1.2.1