Commit 6bb705711b90a64dd1b4ff4dad41cf866e69de78
1 parent
4136f33c
a20 fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@477 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
0 deletions
target-i386/helper2.c
| ... | ... | @@ -190,6 +190,10 @@ void cpu_x86_set_a20(CPUX86State *env, int a20_state) |
| 190 | 190 | { |
| 191 | 191 | a20_state = (a20_state != 0); |
| 192 | 192 | if (a20_state != a20_enabled) { |
| 193 | + /* if the cpu is currently executing code, we must unlink it and | |
| 194 | + all the potentially executing TB */ | |
| 195 | + cpu_interrupt(env, 0); | |
| 196 | + | |
| 193 | 197 | /* when a20 is changed, all the MMU mappings are invalid, so |
| 194 | 198 | we must flush everything */ |
| 195 | 199 | page_unmap(); | ... | ... |