diff options
author | Tao Wu <lepton@google.com> | 2018-01-10 11:50:56 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-16 14:54:51 +0100 |
commit | df16af8741398fee4f8bd5112a00730b1ec6a0f6 (patch) | |
tree | deef6b40eb6ba31dd5790a038888d1d086d03ac9 /target/i386 | |
parent | e527f86e3eb5a973d2e11f8ea08937bcc166d17a (diff) | |
download | qemu-df16af8741398fee4f8bd5112a00730b1ec6a0f6.zip qemu-df16af8741398fee4f8bd5112a00730b1ec6a0f6.tar.gz qemu-df16af8741398fee4f8bd5112a00730b1ec6a0f6.tar.bz2 |
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>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/hax-all.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/i386/hax-all.c b/target/i386/hax-all.c index 07df73e..934ec4a 100644 --- a/target/i386/hax-all.c +++ b/target/i386/hax-all.c @@ -837,9 +837,6 @@ static int hax_sync_vcpu_register(CPUArchState *env, int set) return -1; } } - if (!set) { - x86_update_hflags(env); - } return 0; } @@ -1020,6 +1017,7 @@ static int hax_arch_get_registers(CPUArchState *env) return ret; } + x86_update_hflags(env); return 0; } |