On 7/3/2014 2:59 AM, Daniel Hellstrom wrote: > In order to support older toolchains and LEON3 v7 systems the > -mcpu=leon3 flag can not be used in the LEON3 BSP. The SMP > kernel however requires -mcpu=leon3 for the CAS support only > present in GCC-4.8 and GCC-4.9. I don't know if older tools is an issue with 4.11 or not. I lean to not.
But if we end up with leon3smp as a BSP, doesn't that mean that the regular leon3 BSP isn't turning on the right compiler flags for the CAS instruction? What does having SMP on mean for the regular leon3 configuration? Does it work? fail to compile? The erc32 and leon2 BSPs still work when SMP is enabled even though they are uniprocessor. Just curious if making this distinction is (a) necessary and (b) doesn't introduce subtle breakage if you build leon3 with --enable-smp. --joel > --- > .../libbsp/sparc/leon3/make/custom/leon3smp.cfg | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > create mode 100644 c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg > > diff --git a/c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg > b/c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg > new file mode 100644 > index 0000000..361ca36 > --- /dev/null > +++ b/c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg > @@ -0,0 +1,8 @@ > +# > +# Config file for the LEON3 SPARC V8 SMP processors. > +# > + > +include $(RTEMS_ROOT)/make/custom/leon3.cfg > + > +# LEON3 SPARC v8 system > +CPU_CFLAGS = -mcpu=leon3 -msoft-float -muser-mode -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherr...@oarcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel