ia64/xen-unstable

changeset 17183:96453af916b9

x86_emulate: Load FPU context before FWAIT.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 04 13:28:00 2008 +0000 (2008-03-04)
parents d6e6ba8a72bf
children 166995f1d588
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Tue Mar 04 11:20:22 2008 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Tue Mar 04 13:28:00 2008 +0000
     1.3 @@ -2383,6 +2383,8 @@ x86_emulate(
     1.4      }
     1.5  
     1.6      case 0x9b:  /* wait/fwait */
     1.7 +        fail_if(ops->load_fpu_ctxt == NULL);
     1.8 +        ops->load_fpu_ctxt(ctxt);
     1.9          __emulate_fpu_insn("fwait");
    1.10          break;
    1.11