diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-26 14:46:07 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-26 14:46:07 +0000 |
commit | f69a0fcf366ffc5a39d6f32ad338df8bddc69332 (patch) | |
tree | 24703e4faab7873ecd8d4db82586dbe7340ac88c /xen/arch/x86/x86_emulate.c | |
parent | d595f916004eb7a438eef083367a850afaab3f27 (diff) | |
download | xen-f69a0fcf366ffc5a39d6f32ad338df8bddc69332.tar.gz xen-f69a0fcf366ffc5a39d6f32ad338df8bddc69332.tar.bz2 xen-f69a0fcf366ffc5a39d6f32ad338df8bddc69332.zip |
x86_emulate: Fix FNSTCW/FNSTSW modrm range check.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'xen/arch/x86/x86_emulate.c')
-rw-r--r-- | xen/arch/x86/x86_emulate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c index fb9f16df12..d75f49c504 100644 --- a/xen/arch/x86/x86_emulate.c +++ b/xen/arch/x86/x86_emulate.c @@ -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; |