diff options
author | Juan Quintela <quintela@redhat.com> | 2017-11-22 09:41:57 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-11-23 10:02:44 +0000 |
commit | 8f2c4cbc76cd37c22d0ed9a23b833690e6c405b2 (patch) | |
tree | 614b565f8a11361345077550a21de07df8d6a85f /accel | |
parent | a15d835f00dce270fd3194e83d9910f4b5b44ac0 (diff) |
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 <quintela@redhat.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[PMM: tweaked commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r-- | accel/stubs/tcg-stub.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) +{ +} |