Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-01-15 19:41:31 +0400
committerNick Clifton <nickc@redhat.com>2013-01-15 19:41:31 +0400
commit7d88a8d3731eb183e08c13e870c559db015f6921 (patch)
tree8b3194dc85a8090f93c5061ee5207a0110e7e1cc
parent18905f5551d60f63a387861d0612ff7f82df790b (diff)
* libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the
V850e2v3. * v850/crt0.S (_start): Enable FPU for the V850e2v3.
-rw-r--r--libgloss/ChangeLog4
-rw-r--r--libgloss/v850/crt0.S10
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/sysnecv850/crt0.S12
4 files changed, 31 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 0c34c9136..93eee447d 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-15 Nick Clifton <nickc@redhat.com>
+
+ * v850/crt0.S (_start): Enable FPU for the V850e2v3.
+
2012-12-17 Stuart Henderson <shenders@gcc.gnu.org>
* bfin/Makefile.in: Add BF60x support.
diff --git a/libgloss/v850/crt0.S b/libgloss/v850/crt0.S
index 43b5e21cd..5149bf2cf 100644
--- a/libgloss/v850/crt0.S
+++ b/libgloss/v850/crt0.S
@@ -14,6 +14,16 @@ _start:
mov hilo(__gp), gp
mov hilo(__ctbp), r6
ldsr r6, ctbp
+#if defined(__v850e2v3__)
+ // FPU enable
+ stsr psw, r6
+ movhi 1, r0, r7
+ or r7, r6
+ ldsr r6, psw
+ // Initialize the FPSR
+ movhi 2, r0, r6
+ ldsr r6, fpsr
+#endif
mov hilo(_edata), r6
mov hilo(_end), r7
.L0:
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 772b61ac3..941077974 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-15 Nick Clifton <nickc@redhat.com>
+
+ * libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the
+ V850e2v3.
+
2013-01-12 Corinna Vinschen <vinschen@redhat.com>
* libc/include/string.h: Fix preprocessor expressions using
diff --git a/newlib/libc/sys/sysnecv850/crt0.S b/newlib/libc/sys/sysnecv850/crt0.S
index 43b5e21cd..d8eef8a26 100644
--- a/newlib/libc/sys/sysnecv850/crt0.S
+++ b/newlib/libc/sys/sysnecv850/crt0.S
@@ -14,6 +14,18 @@ _start:
mov hilo(__gp), gp
mov hilo(__ctbp), r6
ldsr r6, ctbp
+
+#if defined(__v850e2v3__)
+ // FPU enable
+ stsr psw, r6
+ movhi 1, r0, r7
+ or r7, r6
+ ldsr r6, psw
+ // Initialize the FPSR
+ movhi 2, r0, r6
+ ldsr r6, fpsr
+#endif
+
mov hilo(_edata), r6
mov hilo(_end), r7
.L0: