mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
fixed TB linking in case of code invalidation (fixes random segfaults)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@469 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8004340674
commit
36bdbe5479
3 changed files with 15 additions and 1 deletions
2
exec.c
2
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue