summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-03 18:37:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-03 18:37:51 +0000
commit001b41625e461404288c2e3ec7821992c06233ef (patch)
tree80052d3b071688cb86ce016a217241fea6e5254f /c/src/lib/libbsp/powerpc/psim/tools/psim-bottom
parent2008-09-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-001b41625e461404288c2e3ec7821992c06233ef.tar.bz2
2008-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Rework psim scripts to share code for creating device trees and actually running the tests. Overhaul the device tree generated to always include a block of Flash and a Real-Time Clock. When running MP tests enable the shared memory and semaphore devices. * psim-bottom, psim-gdb-bottom, psim-gdb-top.in, psim-shared, psim-top.in, runtest-bottom, runtest-top.in: New files. * psim, psim-gdb, runtest: Removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/tools/psim-bottom')
-rwxr-xr-xc/src/lib/libbsp/powerpc/psim/tools/psim-bottom35
1 files changed, 35 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom b/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom
new file mode 100755
index 0000000000..93987cca53
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom
@@ -0,0 +1,35 @@
+#
+# process the options
+#
+# defaults for getopt vars
+#
+
+verbose=""
+limit="0"
+
+## TODO: may want command line ability to turn on some psim tracing
+while getopts vl: OPT
+do
+ case "$OPT" in
+ v)
+ verbose="yes";;
+ l)
+ limit="$OPTARG";;
+ *)
+ fatal;;
+ esac
+done
+shiftcount=`expr $OPTIND - 1`
+shift $shiftcount
+
+args=$*
+
+if [ $# -eq 0 ] ; then
+ fatal
+fi
+
+gen_device_tree ${1} >${TREE_FILE}
+runone ${1} ${limit}
+rm -f ${TREE_FILE}
+exit $?
+