aboutsummaryrefslogtreecommitdiff
path: root/target/i386/hvf/x86.c
diff options
context:
space:
mode:
authorRoman Bolshakov <r.bolshakov@yadro.com>2020-05-28 22:37:53 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-12 11:15:02 -0400
commit967f4da2afb2ece8b2b054bc8af23389e028fdcc (patch)
treef2f2ad47bfa96b4f0947206a3ae67cfab7e4e385 /target/i386/hvf/x86.c
parent2d5f696cb7b7a024f2a1bd4a8c6aed7a1d5532b4 (diff)
downloadqemu-967f4da2afb2ece8b2b054bc8af23389e028fdcc.zip
qemu-967f4da2afb2ece8b2b054bc8af23389e028fdcc.tar.gz
qemu-967f4da2afb2ece8b2b054bc8af23389e028fdcc.tar.bz2
i386: hvf: Drop rflags from HVFX86EmulatorState
HVFX86EmulatorState carries it's own copy of x86 flags. It can be dropped in favor of eflags in generic CPUX86State. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200528193758.51454-9-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/hvf/x86.c b/target/i386/hvf/x86.c
index 3afcedc..7ebb5b4 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) && (RFLAGS(env) & RFLAGS_VM);
+ return x86_is_protected(cpu) && (env->eflags & RFLAGS_VM);
}
bool x86_is_long_mode(struct CPUState *cpu)