SH: feraiseexcept: Restore fpscr flag fields.

This commit is contained in:
Kaz Kojima 2012-05-28 01:02:34 +02:00 committed by Thomas Schwinge
parent d701a1abe2
commit 3f99608f82
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-05-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
fields.
2012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
* sysdeps/sh/_mcount.S (_mount): Add CFI directives.

View File

@ -60,6 +60,14 @@ feraiseexcept (int excepts)
__asm__ __volatile__ ("fmul %1, %0" : "+d" (d) : "d" (x));
}
{
/* Restore flag fields. */
fpu_control_t cw;
_FPU_GETCW (cw);
cw |= (excepts & FE_ALL_EXCEPT);
_FPU_SETCW (cw);
}
return 0;
}
libm_hidden_def (feraiseexcept)