diff options
author | Roman Bolshakov <r.bolshakov@yadro.com> | 2020-05-28 22:37:54 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-12 11:15:02 -0400 |
commit | ea48ae91210eae3cb7d3576d2dc8152529d5f962 (patch) | |
tree | 7f5fa7d02fc7bf1e625e83907f1f56f40d5cd0be /target/i386/hvf/x86.c | |
parent | 967f4da2afb2ece8b2b054bc8af23389e028fdcc (diff) | |
download | qemu-ea48ae91210eae3cb7d3576d2dc8152529d5f962.zip qemu-ea48ae91210eae3cb7d3576d2dc8152529d5f962.tar.gz qemu-ea48ae91210eae3cb7d3576d2dc8152529d5f962.tar.bz2 |
i386: hvf: Drop copy of RFLAGS defines
Use the ones provided in target/i386/cpu.h instead.
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200528193758.51454-10-r.bolshakov@yadro.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hvf/x86.c')
-rw-r--r-- | target/i386/hvf/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/hvf/x86.c b/target/i386/hvf/x86.c index 7ebb5b4..fdb11c8 100644 --- a/target/i386/hvf/x86.c +++ b/target/i386/hvf/x86.c @@ -131,7 +131,7 @@ bool x86_is_v8086(struct CPUState *cpu) { X86CPU *x86_cpu = X86_CPU(cpu); CPUX86State *env = &x86_cpu->env; - return x86_is_protected(cpu) && (env->eflags & RFLAGS_VM); + return x86_is_protected(cpu) && (env->eflags & VM_MASK); } bool x86_is_long_mode(struct CPUState *cpu) |