提交 6bb70571 编写于 作者: B bellard

a20 fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@477 c046a42c-6fe2-441c-8c8c-71466251a162
上级 4136f33c
...@@ -190,6 +190,10 @@ void cpu_x86_set_a20(CPUX86State *env, int a20_state) ...@@ -190,6 +190,10 @@ void cpu_x86_set_a20(CPUX86State *env, int a20_state)
{ {
a20_state = (a20_state != 0); a20_state = (a20_state != 0);
if (a20_state != a20_enabled) { if (a20_state != a20_enabled) {
/* if the cpu is currently executing code, we must unlink it and
all the potentially executing TB */
cpu_interrupt(env, 0);
/* when a20 is changed, all the MMU mappings are invalid, so /* when a20 is changed, all the MMU mappings are invalid, so
we must flush everything */ we must flush everything */
page_unmap(); page_unmap();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册