diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-11 13:21:22 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-11 14:19:31 -0600 |
commit | 16900515214912557dfd35e3b333e0e312b8bc61 (patch) | |
tree | 0ae122f4c1d22352fe5aff959688e3e407c12326 /src/mesa/x86/rtasm | |
parent | 4d184cc33131b440f9aafbcdd2d657050411db49 (diff) | |
download | external_mesa3d-16900515214912557dfd35e3b333e0e312b8bc61.zip external_mesa3d-16900515214912557dfd35e3b333e0e312b8bc61.tar.gz external_mesa3d-16900515214912557dfd35e3b333e0e312b8bc61.tar.bz2 |
mesa: fix broken x86_call()
Diffstat (limited to 'src/mesa/x86/rtasm')
-rw-r--r-- | src/mesa/x86/rtasm/x86sse.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/x86/rtasm/x86sse.c b/src/mesa/x86/rtasm/x86sse.c index 39c0e9b..7a91364 100644 --- a/src/mesa/x86/rtasm/x86sse.c +++ b/src/mesa/x86/rtasm/x86sse.c @@ -1,3 +1,4 @@ +#ifdef USE_X86_ASM #if defined(__i386__) || defined(__386__) #include "imports.h" @@ -290,7 +291,7 @@ void x86_call( struct x86_function *p, void (*label)()) void x86_call( struct x86_function *p, struct x86_reg reg) { emit_1ub(p, 0xff); - emit_modrm(p, reg, reg); + emit_modrm_noreg(p, 2, reg); } #endif @@ -1191,3 +1192,9 @@ void x86sse_dummy( void ) } #endif + +#else /* USE_X86_ASM */ + +int x86sse_c_dummy_var; /* silence warning */ + +#endif /* USE_X86_ASM */ |