Skip to content

Commit

Permalink
tcg: Fix compilation without TCG
Browse files Browse the repository at this point in the history
Commit 2726627 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 <[email protected]>
Acked-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
[PMM: tweaked commit message]
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
Juan Quintela authored and pm215 committed Nov 23, 2017
1 parent a15d835 commit 8f2c4cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions accel/stubs/tcg-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@
void tb_flush(CPUState *cpu)
{
}

void tb_unlock(void)
{
}

void tlb_set_dirty(CPUState *cpu, target_ulong vaddr)
{
}

0 comments on commit 8f2c4cb

Please sign in to comment.