From: "Edgar E. Iglesias" <edgar.igles...@gmail.com> Signed-off-by: Edgar E. Iglesias <edgar.igles...@gmail.com> --- exec.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/exec.c b/exec.c index acbd2e6..f273a46 100644 --- a/exec.c +++ b/exec.c @@ -1715,6 +1715,11 @@ static void tcg_commit(MemoryListener *listener) reset the modified entries */ /* XXX: slow ! */ CPU_FOREACH(cpu) { + /* FIXME: Disentangle the cpu.h circular files deps so we can + directly get the right CPU from listener. */ + if (cpu->tcg_as_listener != listener) { + continue; + } CPUArchState *env = cpu->env_ptr; tlb_flush(env, 1); -- 1.7.10.4