summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-11-16 21:00:03 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-11-16 21:00:03 +0000
commitd62213bb8835689d98677030f8cd3679f0169d09 (patch)
tree3e6ec94b4890d78a353918d77c463c9e191bfe17 /sys/arch/i386/isa
parent18c836f748834ee888f372be25ef67cf2c0138b3 (diff)
Copied from amd64..
Use an explicit suffix for the "fld" instruction to shut up clang. The correct instruction is fldl since we try to load a double-precision value. GCC actually gets it wrong and emits "flds" (which is harmless). ok guenther@
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r--sys/arch/i386/isa/npx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c
index db34f27fb6a..6ea986097f0 100644
--- a/sys/arch/i386/isa/npx.c
+++ b/sys/arch/i386/isa/npx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npx.c,v 1.58 2013/05/08 15:36:30 tedu Exp $ */
+/* $OpenBSD: npx.c,v 1.59 2013/11/16 21:00:02 brad Exp $ */
/* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */
#if 0
@@ -688,7 +688,7 @@ npxdna_xmm(struct cpu_info *ci)
* thus leaking other process's execution history.
*/
fnclex();
- __asm __volatile("ffree %%st(7)\n\tfld %0" : : "m" (zero));
+ __asm __volatile("ffree %%st(7)\n\tfldl %0" : : "m" (zero));
fxrstor(&sfp->sv_xmm);
}