RFA: V850: Extend crt0.S for the V850 e3v5 architecture variant.
Nick Clifton
nickc@redhat.com
Thu Jan 31 17:12:00 GMT 2013
Hi Jeff, Hi Corinna,
Please may I have permission to apply the patch below. It adds
support for the V850's new E3V5 architecture variant to the two
versions of the crt0.S file (one in libgloss, one in newlib).
Tested without regressions on a v850e-elf toolchain.
Cheers
Nick
newlib/ChangeLog
2013-01-31 Nick Clifton <nickc@redhat.com>
* libc/sys/sysnecv850/crt0.S: Add recognition of the e3v5
architecture variant.
libgloss/ChangeLog
2013-01-31 Nick Clifton <nickc@redhat.com>
* v850/crt0.S: Add recognition of the e3v5
architecture variant.
Index: newlib/libc/sys/sysnecv850/crt0.S
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/sysnecv850/crt0.S,v
retrieving revision 1.6
diff -u -3 -p -r1.6 crt0.S
--- newlib/libc/sys/sysnecv850/crt0.S 15 Jan 2013 15:41:29 -0000 1.6
+++ newlib/libc/sys/sysnecv850/crt0.S 31 Jan 2013 17:05:35 -0000
@@ -5,7 +5,7 @@
_start:
-#if defined(__v850e__) || defined(__v850e2__) || defined(__v850e2v3__)
+#if defined(__v850e__) || defined(__v850e2__) || defined(__v850e2v3__) || defined(__v850e3v5__)
movea 255, r0, r20
mov 65535, r21
@@ -15,7 +15,7 @@ _start:
mov hilo(__ctbp), r6
ldsr r6, ctbp
-#if defined(__v850e2v3__)
+#if defined(__v850e2v3__) || defined(__v850e3v5__)
// FPU enable
stsr psw, r6
movhi 1, r0, r7
Index: libgloss/v850/crt0.S
===================================================================
RCS file: /cvs/src/src/libgloss/v850/crt0.S,v
retrieving revision 1.2
diff -u -3 -p -r1.2 crt0.S
--- libgloss/v850/crt0.S 15 Jan 2013 15:41:31 -0000 1.2
+++ libgloss/v850/crt0.S 31 Jan 2013 17:05:35 -0000
@@ -5,7 +5,7 @@
_start:
-#if defined(__v850e__) || defined(__v850e2__) || defined(__v850e2v3__)
+#if defined(__v850e__) || defined(__v850e2__) || defined(__v850e2v3__) || defined(__v850e3v5__)
movea 255, r0, r20
mov 65535, r21
@@ -14,7 +14,7 @@ _start:
mov hilo(__gp), gp
mov hilo(__ctbp), r6
ldsr r6, ctbp
-#if defined(__v850e2v3__)
+#if defined(__v850e2v3__) || defined(__v850e3v5__)
// FPU enable
stsr psw, r6
movhi 1, r0, r7
More information about the Newlib
mailing list