* libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the
V850e2v3. * v850/crt0.S (_start): Enable FPU for the V850e2v3.
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user