Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.38 KB

glibc-2.25-arm-runfast.patch

File metadata and controls

39 lines (35 loc) · 1.38 KB
 
Jan 1, 2014
Jan 1, 2014
1
2
3
4
5
6
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);
}
Dec 4, 2018
Dec 4, 2018
7
Jan 1, 2014
Jan 1, 2014
8
9
10
11
12
13
14
+ /* 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;
--- eglibc-2.18/ports/sysdeps/arm/fpu_control.h 2013-06-24 22:42:26.000000000 +0000
Dec 4, 2018
Dec 4, 2018
15
+++ eglibc-2.18-runfast/sysdeps/arm/fpu_control.h 2014-01-01 11:06:13.000000000 +0000
Jan 1, 2014
Jan 1, 2014
16
17
@@ -22,7 +22,8 @@
#if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
Dec 4, 2018
Dec 4, 2018
18
Jan 1, 2014
Jan 1, 2014
19
20
21
22
23
24
25
#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)
Dec 4, 2018
Dec 4, 2018
26
@@ -44,10 +45,11 @@ extern fpu_control_t __fpu_control;
Oct 4, 2011
Oct 4, 2011
27
28
/* Some bits in the FPSCR are not yet defined. They must be preserved when
modifying the contents. */
Jan 1, 2014
Jan 1, 2014
29
#define _FPU_RESERVED 0x00086060
Oct 4, 2011
Oct 4, 2011
30
31
-#define _FPU_DEFAULT 0x00000000
+/* The default mode is RunFast */
Dec 4, 2018
Dec 4, 2018
32
33
34
+#define _FPU_DEFAULT (3 << 24)
/* Default + exceptions enabled. */
Oct 4, 2011
Oct 4, 2011
35
36
-#define _FPU_IEEE (_FPU_DEFAULT | 0x00001f00)
+#define _FPU_IEEE 0x00001f00
Dec 4, 2018
Dec 4, 2018
37
Oct 4, 2011
Oct 4, 2011
38
39
/* Type of the control word. */
typedef unsigned int fpu_control_t;