diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-01 08:00:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-01 08:00:35 +0200 |
commit | aacb7e6aff9e59c675979e25902caa3e38892765 (patch) | |
tree | e5e7ba7c8dd54062db8cc382c59b4dd725c0456a | |
parent | Regenerate all preinstall.am files. (diff) | |
download | rtems-aacb7e6aff9e59c675979e25902caa3e38892765.tar.bz2 |
bsp/ngmp: Use -mcpu=leon3 GCC option
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
It is mandatory to use this option for SMP 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.
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg b/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg index 86da029c42..5e3d1960f2 100644 --- a/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg +++ b/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg @@ -1 +1,3 @@ include $(RTEMS_ROOT)/make/custom/leon3.cfg + +CPU_CFLAGS = -mcpu=leon3 -msoft-float |