aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_emulate.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-04-16 16:10:41 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-04-16 16:10:41 +0100
commita6836b4fdd40e84ef453a23fc298486049d26ef7 (patch)
tree7dc43533c1fffaefc55e4de38e3c3264d0f02037 /xen/arch/x86/x86_emulate.c
parent8415719513ba048939d0ded7565cd9cba7c306c4 (diff)
downloadxen-a6836b4fdd40e84ef453a23fc298486049d26ef7.tar.gz
xen-a6836b4fdd40e84ef453a23fc298486049d26ef7.tar.bz2
xen-a6836b4fdd40e84ef453a23fc298486049d26ef7.zip
x86_emulate: Implement a more dynamic interface for handling FPU
exceptions, which will allow emulation stubs to be built dynamically in a future patch. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/x86_emulate.c')
-rw-r--r--xen/arch/x86/x86_emulate.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c
index f743650a5d..e69deb1ed8 100644
--- a/xen/arch/x86/x86_emulate.c
+++ b/xen/arch/x86/x86_emulate.c
@@ -11,23 +11,7 @@
#include <asm/x86_emulate.h>
+/* Avoid namespace pollution. */
#undef cmpxchg
-#define __emulate_fpu_insn(_op) \
-do{ int _exn; \
- asm volatile ( \
- "1: " _op "\n" \
- "2: \n" \
- ".section .fixup,\"ax\"\n" \
- "3: mov $1,%0\n" \
- " jmp 2b\n" \
- ".previous\n" \
- ".section __ex_table,\"a\"\n" \
- " "__FIXUP_ALIGN"\n" \
- " "__FIXUP_WORD" 1b,3b\n" \
- ".previous" \
- : "=r" (_exn) : "0" (0) ); \
- generate_exception_if(_exn, EXC_MF, -1); \
-} while (0)
-
#include "x86_emulate/x86_emulate.c"