summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2014-11-12 13:45:51 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2014-11-20 15:25:23 +0100
commit306875a58364d015c1ac320e2a21d9c0f7f1ddd8 (patch)
treeeda1b3eeff157ee23b2e4ebaf6c5a1f28410de82
parentc2e0fee87c9271a4b3a321cc25467b024db18eed (diff)
LEON3: use new mcpu=leon3v7 build flag
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.
-rw-r--r--c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg2
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 58f2f07f20..87f3d4cc6c 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