backport: fpu-387.h (has_sse): Remove cw_sse, unused.
Backport from mainline: 2010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * config/fpu-387.h (has_sse): Remove cw_sse, unused. Use fixed-length asm. From-SVN: r164364
This commit is contained in:
parent
641f3dab26
commit
99614d765a
|
@ -1,3 +1,11 @@
|
|||
2010-09-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
Backport from mainline:
|
||||
2010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* config/fpu-387.h (has_sse): Remove cw_sse, unused.
|
||||
Use fixed-length asm.
|
||||
|
||||
2010-07-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
Backport from mainline:
|
||||
|
|
|
@ -64,7 +64,6 @@ has_sse (void)
|
|||
if (edx & bit_SSE)
|
||||
{
|
||||
struct sigaction act, oact;
|
||||
unsigned int cw_sse;
|
||||
|
||||
act.sa_handler = sigill_hdlr;
|
||||
sigemptyset (&act.sa_mask);
|
||||
|
@ -72,7 +71,9 @@ has_sse (void)
|
|||
act.sa_flags = SA_SIGINFO;
|
||||
sigaction (SIGILL, &act, &oact);
|
||||
|
||||
asm volatile ("stmxcsr %0" : "=m" (cw_sse));
|
||||
/* We need a single SSE instruction here so the handler can safely skip
|
||||
over it. */
|
||||
__asm__ volatile ("movss %xmm2,%xmm1");
|
||||
|
||||
sigaction (SIGILL, &oact, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue