mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86_emulate: Fix FNSTCW/FNSTSW modrm range check.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
This commit is contained in:
1 parent
d595f91600
commit
f69a0fcf36
1 file changed
+2
-2
@@ -2671,7 +2671,7 @@ x86_emulate(
|
||||
fail_if(ops->load_fpu_ctxt == NULL);
|
||||
ops->load_fpu_ctxt(ctxt);
|
||||
fail_if((modrm_reg & 7) != 7);
|
||||
fail_if(modrm_reg >= 0xc0);
|
||||
fail_if(modrm >= 0xc0);
|
||||
/* fnstcw m2byte */
|
||||
ea.bytes = 2;
|
||||
dst = ea;
|
||||
@@ -2690,7 +2690,7 @@ x86_emulate(
|
||||
fail_if(ops->load_fpu_ctxt == NULL);
|
||||
ops->load_fpu_ctxt(ctxt);
|
||||
fail_if((modrm_reg & 7) != 7);
|
||||
fail_if(modrm_reg >= 0xc0);
|
||||
fail_if(modrm >= 0xc0);
|
||||
/* fnstsw m2byte */
|
||||
ea.bytes = 2;
|
||||
dst = ea;
|
||||
|
||||