The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch enables the relatively new LEON3 model and generates SPARCv7 compatible code. This shuold be comptabile with all single-core LEON3/4 systems. The LEON3 model is required for SMP to make GCC generate the CAS instruction. --- 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..87f3d4c 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=leon3v7 -msoft-float -muser-mode # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g -- 1.7.0.4 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel