* [PATCH] Fix x86_emulate instruction check
@ 2008-02-26 11:32 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-02-26 11:32 UTC (permalink / raw)
To: xen-devel
FPU instruction check should be against modrm, not modrm_reg, which only
contains a small part of it (and not the needed part...)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 50bc54fc91dd xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c Mon Feb 25 12:08:05 2008 +0000
+++ b/xen/arch/x86/x86_emulate.c Tue Feb 26 11:30:27 2008 +0000
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-26 11:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 11:32 [PATCH] Fix x86_emulate instruction check Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.