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 /libgloss/v850
parent18905f5551d60f63a387861d0612ff7f82df790b (diff)
* libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the
V850e2v3. * v850/crt0.S (_start): Enable FPU for the V850e2v3.
Diffstat (limited to 'libgloss/v850')
-rw-r--r--libgloss/v850/crt0.S10
1 files changed, 10 insertions, 0 deletions
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: