提交 df16af87 编写于 作者: T Tao Wu 提交者: Paolo Bonzini

target/i386: hax: Move x86_update_hflags.

x86_update_hflags reference env->efer which is updated in hax_get_msrs,
so it has to be called after hax_get_msrs. This fix the bug that sometimes
dump_state show 32 bits regs even in 64 bits mode.
Signed-off-by: NTao Wu <lepton@google.com>
Message-Id: <20180110195056.85403-3-lepton@google.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 e527f86e
...@@ -837,9 +837,6 @@ static int hax_sync_vcpu_register(CPUArchState *env, int set) ...@@ -837,9 +837,6 @@ static int hax_sync_vcpu_register(CPUArchState *env, int set)
return -1; return -1;
} }
} }
if (!set) {
x86_update_hflags(env);
}
return 0; return 0;
} }
...@@ -1020,6 +1017,7 @@ static int hax_arch_get_registers(CPUArchState *env) ...@@ -1020,6 +1017,7 @@ static int hax_arch_get_registers(CPUArchState *env)
return ret; return ret;
} }
x86_update_hflags(env);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册