There is support for the LEON3 processor available in Binutils 2.24 and
the GCC 4.8 branch and GCC mainline.

GCC 4.8 branch:

http://gcc.gnu.org/viewcvs/gcc/branches/?view=log&pathrev=205331

GCC mainline:

http://gcc.gnu.org/viewcvs/gcc/trunk/?view=log&pathrev=202664

This is critical for further SMP development on LEON3 since it enables
usage of C11 atomic operations.  It makes it also possible to use an
inline function for _CPU_SMP_Get_current_processor() which avoids the
function call overhead in critical sections.
---
 c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg 
b/c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg
index 58f2f07..34ad967 100644
--- a/c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg
+++ b/c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg
@@ -9,7 +9,7 @@ RTEMS_CPU_MODEL=leon3
 
 #  This contains the compiler options necessary to select the CPU model
 #  and (hopefully) optimize for it.
-CPU_CFLAGS = -mcpu=cypress -msoft-float
+CPU_CFLAGS = -mcpu=leon3 -msoft-float
 
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g
-- 
1.7.7

_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to