target/i386: hax: Move x86_update_hflags.
commitdf16af8741398fee4f8bd5112a00730b1ec6a0f6
authorTao Wu <lepton@google.com>
Wed, 10 Jan 2018 19:50:56 +0000 (10 11:50 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jan 2018 13:54:51 +0000 (16 14:54 +0100)
treedeef6b40eb6ba31dd5790a038888d1d086d03ac9
parente527f86e3eb5a973d2e11f8ea08937bcc166d17a
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: Tao Wu <lepton@google.com>
Message-Id: <20180110195056.85403-3-lepton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hax-all.c