about summary refs log tree commit diff
path: root/sysdeps/powerpc/nofpu/fclrexcpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/nofpu/fclrexcpt.c')
-rw-r--r--sysdeps/powerpc/nofpu/fclrexcpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/powerpc/nofpu/fclrexcpt.c b/sysdeps/powerpc/nofpu/fclrexcpt.c
index fabda0ab98..da0b61a894 100644
--- a/sysdeps/powerpc/nofpu/fclrexcpt.c
+++ b/sysdeps/powerpc/nofpu/fclrexcpt.c
@@ -23,7 +23,8 @@
 int
 __feclearexcept (int x)
 {
-  __sim_exceptions &= ~x;
+  __sim_exceptions_thread &= ~x;
+  SIM_SET_GLOBAL (__sim_exceptions_global, __sim_exceptions_thread);
   return 0;
 }