aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/x86_emulate.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-23 14:30:29 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-23 14:30:29 +0000
commit5979d61397078388d979e71d9092322c57225833 (patch)
tree7069d01f9bb5f427cd771b798baadaeab7dd110e /xen/include/asm-x86/x86_emulate.h
parent06f0612ed5738a6769453facd62ebb7c8127308d (diff)
downloadxen-5979d61397078388d979e71d9092322c57225833.tar.gz
xen-5979d61397078388d979e71d9092322c57225833.tar.bz2
xen-5979d61397078388d979e71d9092322c57225833.zip
x86_emulate: Emulate FNINIT, FNSTCW, FNSTSW x87 instructions.
Provide new hook ->load_fpu_ctxt() to ensure emulated environment's FPU state is loaded onto the local processor. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/x86_emulate.h')
-rw-r--r--xen/include/asm-x86/x86_emulate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/asm-x86/x86_emulate.h b/xen/include/asm-x86/x86_emulate.h
index a794e03d6f..17a76f936a 100644
--- a/xen/include/asm-x86/x86_emulate.h
+++ b/xen/include/asm-x86/x86_emulate.h
@@ -340,6 +340,10 @@ struct x86_emulate_ops
uint8_t vector,
uint8_t insn_len,
struct x86_emulate_ctxt *ctxt);
+
+ /* load_fpu_ctxt: Load emulated environment's FPU state onto processor. */
+ void (*load_fpu_ctxt)(
+ struct x86_emulate_ctxt *ctxt);
};
struct cpu_user_regs;