diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-19 23:19:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-19 23:19:14 +0000 |
commit | 6cc464589c6a6555fa297a3cd176da8e67b6df0a (patch) | |
tree | b2ddfeb8a67f7350c76ea5d52867c708d7d77a32 /sim-scripts | |
parent | 2009-01-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-testing-6cc464589c6a6555fa297a3cd176da8e67b6df0a.tar.bz2 |
2009-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, Makefile, gdb-sim-run.in: Add m32csim, m32rsim, and
simsh.
* m32csim.in, m32rsim.in, simsh.in: New files.
Diffstat (limited to 'sim-scripts')
-rw-r--r-- | sim-scripts/.cvsignore | 3 | ||||
-rw-r--r-- | sim-scripts/ChangeLog | 6 | ||||
-rw-r--r-- | sim-scripts/Makefile | 24 | ||||
-rwxr-xr-x | sim-scripts/gdb-sim-run.in | 2 | ||||
-rw-r--r-- | sim-scripts/m32csim.in | 27 | ||||
-rw-r--r-- | sim-scripts/m32rsim.in | 27 | ||||
-rw-r--r-- | sim-scripts/simsh.in | 27 |
7 files changed, 114 insertions, 2 deletions
diff --git a/sim-scripts/.cvsignore b/sim-scripts/.cvsignore index 512a006..3ec4e90 100644 --- a/sim-scripts/.cvsignore +++ b/sim-scripts/.cvsignore @@ -1,4 +1,7 @@ h8sim-4.10 jmr3904-4.10 +m32csim-4.10 +m32rsim-4.10 +simsh-4.10 sis-4.10 usleep diff --git a/sim-scripts/ChangeLog b/sim-scripts/ChangeLog index 505d1dc..6dada47 100644 --- a/sim-scripts/ChangeLog +++ b/sim-scripts/ChangeLog @@ -1,5 +1,11 @@ 2009-01-19 Joel Sherrill <joel.sherrill@oarcorp.com> + * .cvsignore, Makefile, gdb-sim-run.in: Add m32csim, m32rsim, and + simsh. + * m32csim.in, m32rsim.in, simsh.in: New files. + +2009-01-19 Joel Sherrill <joel.sherrill@oarcorp.com> + * .cvsignore, Makefile, gdb-sim-run.in: Add h8300/h8sim. * h8sim.in: New file. diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile index 3417fc6..2e3c6c2 100644 --- a/sim-scripts/Makefile +++ b/sim-scripts/Makefile @@ -3,7 +3,8 @@ # INSTALL_DIR=../bin -GENERATED_SCRIPTS=h8sim-4.10 jmr3904-4.10 sis-4.10 +GENERATED_SCRIPTS=h8sim-4.10 jmr3904-4.10 m32csim-4.10 m32rsim-4.10 \ + sis-4.10 simsh-4.10 COMPILED_PROGRAMS=usleep all: prep ${GENERATED_SCRIPTS} ${COMPILED_PROGRAMS} install @@ -28,6 +29,20 @@ jmr3904-4.10: gdb-sim-run.in jmr3904.in -e '/^##INSERT BSP SUPPORT HERE/r jmr3904.in' <$< >$@ chmod +x $@ +m32csim-4.10: gdb-sim-run.in m32csim.in + sed -e 's/@CPU@/M32C/' \ + -e 's/@CPU_TARGET@/m32c/' \ + -e 's/@BSP@/m32csim/' \ + -e '/^##INSERT BSP SUPPORT HERE/r m32csim.in' <$< >$@ + chmod +x $@ + +m32rsim-4.10: gdb-sim-run.in m32rsim.in + sed -e 's/@CPU@/M32R/' \ + -e 's/@CPU_TARGET@/m32r/' \ + -e 's/@BSP@/m32rsim/' \ + -e '/^##INSERT BSP SUPPORT HERE/r m32rsim.in' <$< >$@ + chmod +x $@ + sis-4.10: gdb-sim-run.in sis.in sed -e 's/@CPU@/SPARC/' \ -e 's/@CPU_TARGET@/sparc/' \ @@ -35,6 +50,13 @@ sis-4.10: gdb-sim-run.in sis.in -e '/^##INSERT BSP SUPPORT HERE/r sis.in' <$< >$@ chmod +x $@ +simsh-4.10: gdb-sim-run.in simsh.in + sed -e 's/@CPU@/SuperH/' \ + -e 's/@CPU_TARGET@/sh/' \ + -e 's/@BSP@/simsh/' \ + -e '/^##INSERT BSP SUPPORT HERE/r simsh.in' <$< >$@ + chmod +x $@ + clean: rm -f ${GENERATED_SCRIPTS} ${COMPILED_PROGRAMS} diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in index 7055782..efab885 100755 --- a/sim-scripts/gdb-sim-run.in +++ b/sim-scripts/gdb-sim-run.in @@ -1,6 +1,6 @@ #! /bin/sh # -# Framework script tailored for the @CPU@/@BSP +# Framework script tailored for the @CPU@/@BSP@ # # NOTE: If the does not have the name of a specific CPU/BSP pair, then # this is the source file. If it does have specific CPU/BSP pair, diff --git a/sim-scripts/m32csim.in b/sim-scripts/m32csim.in new file mode 100644 index 0000000..5620d05 --- /dev/null +++ b/sim-scripts/m32csim.in @@ -0,0 +1,27 @@ +# +# M32C/m32csim Support +# +# $Id$ +# + +runBSP() +{ + ${RUN} ${1} +} + +checkBSPFaults() +{ + return 0 +} + +bspLimit() +{ + testname=$1 + case ${tname} in + *stackchk*)limit=5 ;; + *fatal*) limit=1 ;; + *psxtime*) limit=180 ;; + *) limit=60 ;; + esac + return ${limit} +} diff --git a/sim-scripts/m32rsim.in b/sim-scripts/m32rsim.in new file mode 100644 index 0000000..9536d89 --- /dev/null +++ b/sim-scripts/m32rsim.in @@ -0,0 +1,27 @@ +# +# M32R/m32rsim Support +# +# $Id$ +# + +runBSP() +{ + ${RUN} ${1} +} + +checkBSPFaults() +{ + return 0 +} + +bspLimit() +{ + testname=$1 + case ${tname} in + *stackchk*)limit=5 ;; + *fatal*) limit=1 ;; + *psxtime*) limit=180 ;; + *) limit=60 ;; + esac + return ${limit} +} diff --git a/sim-scripts/simsh.in b/sim-scripts/simsh.in new file mode 100644 index 0000000..afba659 --- /dev/null +++ b/sim-scripts/simsh.in @@ -0,0 +1,27 @@ +# +# SuperH/shsim Support +# +# $Id$ +# + +runBSP() +{ + ${RUN} ${1} +} + +checkBSPFaults() +{ + return 0 +} + +bspLimit() +{ + testname=$1 + case ${tname} in + *stackchk*)limit=5 ;; + *fatal*) limit=1 ;; + *psxtime*) limit=180 ;; + *) limit=60 ;; + esac + return ${limit} +} |