target-i386: Fix vm86 mode regression introduced in fd460606fd6f.
commit87446327ccb2e944fe7abc848bab798a0864eb03
authorKevin O'Connor <kevin@koconnor.net>
Tue, 20 May 2014 21:10:24 +0000 (20 17:10 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 May 2014 16:02:08 +0000 (21 18:02 +0200)
tree278df0c7e3b9f723277300dea6fa85433c62d137
parentb763adf1a6b271f17f15ea31fae93d03e980d911
target-i386: Fix vm86 mode regression introduced in fd460606fd6f.

Commit fd460606fd6f moved setting of eflags above calls to
cpu_x86_load_seg_cache() in seg_helper.c.  Unfortunately, in
do_interrupt_protected() this moved the clearing of VM_MASK above a
test for it.

Fix this regression by storing the value of VM_MASK at the start of
do_interrupt_protected().

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/seg_helper.c