glibc-arm-runfast.patch 1.66 KB
Newer Older
Carsten Munk's avatar
Carsten Munk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
diff -ru eglibc-2.18/csu/init-first.c eglibc-2.18-runfast/csu/init-first.c
--- eglibc-2.18/csu/init-first.c	2013-01-10 00:28:48.000000000 +0000
+++ eglibc-2.18-runfast/csu/init-first.c	2014-01-01 10:46:24.000000000 +0000
@@ -69,6 +69,9 @@
 	__setfpucw (__fpu_control);
     }
 
+  /* Set the default FPU mode once again it is RunFast */
+  _FPU_SETCW(_FPU_DEFAULT);
+
   /* Save the command-line arguments.  */
   __libc_argc = argc;
   __libc_argv = argv;
Only in eglibc-2.18-runfast/ports/sysdeps/arm: .fpu_control.h.rej.swp
diff -ru eglibc-2.18/ports/sysdeps/arm/fpu_control.h eglibc-2.18-runfast/ports/sysdeps/arm/fpu_control.h
--- eglibc-2.18/ports/sysdeps/arm/fpu_control.h	2013-06-24 22:42:26.000000000 +0000
+++ eglibc-2.18-runfast/ports/sysdeps/arm/fpu_control.h	2014-01-01 11:06:13.000000000 +0000
@@ -22,7 +22,8 @@
 #if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
 
 #define _FPU_RESERVED 0xffffffff
-#define _FPU_DEFAULT  0x00000000
+#define _FPU_DEFAULT    (3 << 24)
+
 typedef unsigned int fpu_control_t;
 #define _FPU_GETCW(cw) (cw) = 0
 #define _FPU_SETCW(cw) (void) (cw)
@@ -40,9 +41,11 @@
Carsten Munk's avatar
Carsten Munk committed
29 30
 /* Some bits in the FPSCR are not yet defined.  They must be preserved when
    modifying the contents.  */
Carsten Munk's avatar
Carsten Munk committed
31
 #define _FPU_RESERVED	0x00086060
Carsten Munk's avatar
Carsten Munk committed
32 33 34
-#define _FPU_DEFAULT    0x00000000
+/* The default mode is RunFast */
+#define _FPU_DEFAULT    (3 << 24)
Carsten Munk's avatar
Carsten Munk committed
35
+
Carsten Munk's avatar
Carsten Munk committed
36 37 38 39 40 41
 /* Default + exceptions enabled. */
-#define _FPU_IEEE	(_FPU_DEFAULT | 0x00001f00)
+#define _FPU_IEEE	0x00001f00
 
 /* Type of the control word.  */
 typedef unsigned int fpu_control_t;
Carsten Munk's avatar
Carsten Munk committed
42 43
Only in eglibc-2.18-runfast/ports/sysdeps/arm: fpu_control.h.orig
Only in eglibc-2.18-runfast/ports/sysdeps/arm: fpu_control.h.rej