x86emul: support FLDENV and FRSTOR
authorJan Beulich <jbeulich@suse.com>
Fri, 29 May 2020 15:34:31 +0000 (17:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 May 2020 15:34:31 +0000 (17:34 +0200)
commitbe55ed744ed81ffb114ce16abb4bfe2f22af5a1d
tree5907acf3435a165ad6c2f98d76ce3efcffcca5ad
parent422a104ba3c84795a08fa107117d6d08e79ef106
x86emul: support FLDENV and FRSTOR

While the Intel SDM claims that FRSTOR itself may raise #MF upon
completion, this was confirmed by Intel to be a doc error which will be
corrected in due course; behavior is like FLDENV, and like old hard copy
manuals describe it.

Re-arrange a switch() statement's case label order to allow for
fall-through from FLDENV handling to FNSTENV's.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c
xen/arch/x86/x86_emulate/x86_emulate.c