summaryrefslogtreecommitdiffstats
path: root/sim-scripts
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-09 14:28:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-09 14:28:26 +0000
commit076fae91dd1bbe884b5d771938eb86cd04b9c0be (patch)
treeab6da5487846e366e00fca36a1888932b805f1c6 /sim-scripts
parent2009-09-08 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-testing-076fae91dd1bbe884b5d771938eb86cd04b9c0be.tar.bz2
2009-09-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, Makefile: Add initial version of Qemu uc5282 and LEON2 scripts. * qemu-leon2.in, qemu-uc5282.in: New files.
Diffstat (limited to 'sim-scripts')
-rw-r--r--sim-scripts/.cvsignore2
-rw-r--r--sim-scripts/ChangeLog6
-rw-r--r--sim-scripts/Makefile8
-rw-r--r--sim-scripts/qemu-leon2.in35
-rw-r--r--sim-scripts/qemu-uc5282.in35
5 files changed, 85 insertions, 1 deletions
diff --git a/sim-scripts/.cvsignore b/sim-scripts/.cvsignore
index d69d0d3..756b27f 100644
--- a/sim-scripts/.cvsignore
+++ b/sim-scripts/.cvsignore
@@ -33,7 +33,9 @@ m32rsim
m32rsim-gdb
psim
psim-gdb
+qemu-leon2
qemu-rtems
+qemu-uc5282
rtl22xx
rtl22xx-gdb
simsh
diff --git a/sim-scripts/ChangeLog b/sim-scripts/ChangeLog
index e8cd29d..97bd54e 100644
--- a/sim-scripts/ChangeLog
+++ b/sim-scripts/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-09 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * .cvsignore, Makefile: Add initial version of Qemu uc5282 and LEON2
+ scripts.
+ * qemu-leon2.in, qemu-uc5282.in: New files.
+
2009-08-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* gdb-sim-run.in, gdb-sim.in, gumstix.in: Make graphics and network
diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile
index f2a7c3a..9b3ba8b 100644
--- a/sim-scripts/Makefile
+++ b/sim-scripts/Makefile
@@ -8,7 +8,7 @@ SKYEYE_SCRIPTS=ant5206 bf537Stamp csb337 csb350 csb360 edb7312 ezkit533 \
gumstix rtl22xx smdk2410 leon2-skyeye
TSIM_SCRIPTS=erc32 leon2 leon3
-QEMU_SCRIPTS=qemu-rtems
+QEMU_SCRIPTS=qemu-rtems qemu-leon2 qemu-uc5282
OTHER_SCRIPTS=avrtest
GENERATED_SCRIPTS=\
${GDBSIM_SCRIPTS} $(GDBSIM_SCRIPTS:%=%-gdb) \
@@ -32,6 +32,12 @@ usleep: usleep.c
qemu-rtems: gdb-sim-run.in qemu-rtems.in
./mkrun no i386 i386 qemu-rtems
+qemu-leon2: gdb-sim-run.in qemu-leon2.in
+ ./mkrun no SPARC sparc qemu-leon2
+
+qemu-uc5282: gdb-sim-run.in qemu-uc5282.in
+ ./mkrun no M68K-Coldfire m68k qemu-uc5282
+
### Skyeye Simulator BSPs
ant5206: gdb-sim-run.in gdb-sim.in ant5206.in
./mkrun yes M68K-Coldfire m68k ant5206
diff --git a/sim-scripts/qemu-leon2.in b/sim-scripts/qemu-leon2.in
new file mode 100644
index 0000000..65db552
--- /dev/null
+++ b/sim-scripts/qemu-leon2.in
@@ -0,0 +1,35 @@
+#
+# SPARC/LEON2 Qemu Support
+#
+# $Id$
+#
+
+bspUsesGDBSimulator="no"
+# bspGeneratesGDBCommands="yes"
+# bspSupportsGDBServerMode="yes"
+runBSP=qemu-system-sparc
+bspNeedsDos2Unix="yes"
+
+runARGS()
+{
+ echo "-nographic -M at697 -kernel "
+}
+
+checkBSPFaults()
+{
+ return 0
+}
+
+bspLimit()
+{
+ testname=$1
+ case ${tname} in
+ *stackchk*)limit=5 ;;
+ *fatal*) limit=1 ;;
+ *psxtime*) limit=180 ;;
+ *) limit=60 ;;
+ esac
+ echo ${limit}
+}
+
+bspGeneratesDeviceTree="no"
diff --git a/sim-scripts/qemu-uc5282.in b/sim-scripts/qemu-uc5282.in
new file mode 100644
index 0000000..b14c459
--- /dev/null
+++ b/sim-scripts/qemu-uc5282.in
@@ -0,0 +1,35 @@
+#
+# m68k/uc5282 Qemu Support
+#
+# $Id$
+#
+
+bspUsesGDBSimulator="no"
+# bspGeneratesGDBCommands="yes"
+# bspSupportsGDBServerMode="yes"
+runBSP=qemu-system-m68k
+bspNeedsDos2Unix="yes"
+
+runARGS()
+{
+ echo "-M uc5282 -nographic -kernel"
+}
+
+checkBSPFaults()
+{
+ return 0
+}
+
+bspLimit()
+{
+ testname=$1
+ case ${tname} in
+ *stackchk*)limit=5 ;;
+ *fatal*) limit=1 ;;
+ *psxtime*) limit=180 ;;
+ *) limit=60 ;;
+ esac
+ echo ${limit}
+}
+
+bspGeneratesDeviceTree="no"