target-i386: set eflags and cr0 prior to calling cpu_x86_load_seg_cache() in smm_helper.c
commit010e639a8dd3848c7994aae288c218c6ea52a819
authorKevin O'Connor <kevin@koconnor.net>
Tue, 29 Apr 2014 20:38:10 +0000 (29 16:38 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 May 2014 11:12:40 +0000 (13 13:12 +0200)
tree71db35b901609478851a8ef3d2d9bda2229120ea
parent304520291aac95d6a45a3f369f5275e11ef15b2e
target-i386: set eflags and cr0 prior to calling cpu_x86_load_seg_cache() in smm_helper.c

The cpu_x86_load_seg_cache() function inspects cr0 and eflags, so make
sure all changes to eflags and cr0 are done prior to loading the
segment caches.

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