diff options
author | Nick Clifton <nickc@redhat.com> | 2013-01-15 19:41:31 +0400 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-01-15 19:41:31 +0400 |
commit | 7d88a8d3731eb183e08c13e870c559db015f6921 (patch) | |
tree | 8b3194dc85a8090f93c5061ee5207a0110e7e1cc /newlib | |
parent | 18905f5551d60f63a387861d0612ff7f82df790b (diff) |
* libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the
V850e2v3.
* v850/crt0.S (_start): Enable FPU for the V850e2v3.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/sys/sysnecv850/crt0.S | 12 |
2 files changed, 17 insertions, 0 deletions
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: |