From 89c2003e8407ebaac93782dc56113676dab2ae8b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 4 Oct 2013 15:56:48 +0000 Subject: e500 port: fix fpu_control.h constant values. --- sysdeps/powerpc/fpu_control.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/powerpc/fpu_control.h b/sysdeps/powerpc/fpu_control.h index 86e5ab16f9..e82e7913cb 100644 --- a/sysdeps/powerpc/fpu_control.h +++ b/sysdeps/powerpc/fpu_control.h @@ -38,20 +38,18 @@ extern fpu_control_t __fpu_control; /* masking of interrupts */ # define _FPU_MASK_ZM 0x10 /* zero divide */ -# define _FPU_MASK_OM 0x40 /* overflow */ -# define _FPU_MASK_UM 0x80 /* underflow */ +# define _FPU_MASK_OM 0x04 /* overflow */ +# define _FPU_MASK_UM 0x08 /* underflow */ # define _FPU_MASK_XM 0x40 /* inexact */ # define _FPU_MASK_IM 0x20 /* invalid operation */ -# define _FPU_RESERVED 0xff3fff7f /* These bits are reserved and not changed. */ - -/* The fdlibm code requires no interrupts for exceptions. */ -# define _FPU_DEFAULT 0x00000000 /* Default value. */ +# define _FPU_RESERVED 0x00c10080 /* These bits are reserved and not changed. */ -/* IEEE: same as above, but (some) exceptions; - we leave the 'inexact' exception off. - */ -# define _FPU_IEEE 0x000003c0 +/* Correct IEEE semantics require traps to be enabled at the hardware + level; the kernel then does the emulation and determines whether + generation of signals from those traps was enabled using prctl. */ +# define _FPU_DEFAULT 0x0000003c /* Default value. */ +# define _FPU_IEEE _FPU_DEFAULT /* Type of the control word. */ typedef unsigned int fpu_control_t; -- cgit 1.4.1