]> git.proxmox.com Git - mirror_qemu.git/blobdiff - exec.c
fixed TB linking in case of code invalidation (fixes random segfaults)
[mirror_qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index ca767e2af0cdbf2f96529a3cd5356160b5589bfa..9cc251f959f6060080a54cac75482fa8cb5973dc 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -362,6 +362,8 @@ static inline void tb_invalidate(TranslationBlock *tb, int parity)
     unsigned int h, n1;
     TranslationBlock *tb1, *tb2;
     
+    tb_invalidated_flag = 1;
+    
     /* remove the TB from the hash list */
     h = tb_hash_func(tb->pc);
     tb_remove(&tb_hash[h], tb,