diff options
author | Nick Clifton <nickc@redhat.com> | 2013-01-15 15:41:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-01-15 15:41:31 +0000 |
commit | 7d88a8d3731eb183e08c13e870c559db015f6921 (patch) | |
tree | 8b3194dc85a8090f93c5061ee5207a0110e7e1cc /libgloss/v850 | |
parent | 18905f5551d60f63a387861d0612ff7f82df790b (diff) | |
download | cygnal-7d88a8d3731eb183e08c13e870c559db015f6921.tar.gz cygnal-7d88a8d3731eb183e08c13e870c559db015f6921.tar.bz2 cygnal-7d88a8d3731eb183e08c13e870c559db015f6921.zip |
* 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.S | 10 |
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: |