summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHesham ALMatary <heshamelmatary@gmail.com>2014-09-08 07:51:14 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-09-29 14:56:53 -0500
commit6b84783cb62f145c2a37e0dbe11c3a161ad1fd5b (patch)
tree14f5aacbd0f85d4e600af91d555c44064a9966d3
parent.gitignore: Add or1ksim and or1ksim-gdb (diff)
downloadrtems-testing-6b84783cb62f145c2a37e0dbe11c3a161ad1fd5b.tar.bz2
sim-scripts: add new script to run or1k/or1ksim on qemu.
-rw-r--r--sim-scripts/Makefile7
-rw-r--r--sim-scripts/qemu-or1k.in41
2 files changed, 46 insertions, 2 deletions
diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile
index e45feae..4ef9c44 100644
--- a/sim-scripts/Makefile
+++ b/sim-scripts/Makefile
@@ -5,8 +5,8 @@ SKYEYE_SCRIPTS=ant5206 bf537Stamp-skyeye csb337 csb350 csb360 edb7312 \
ezkit533-skyeye gumstix rtl22xx smdk2410 leon2-skyeye
TSIM_SCRIPTS=erc32 leon2 leon3
-QEMU_SCRIPTS=pc386 qemuppc qemu-gumstix qemu-leon2 qemu-lm32_evr uC5282 \
- lm3s6965 realview_pbx_a9_qemu realview_pbx_a9_qemu_smp \
+QEMU_SCRIPTS=pc386 qemuppc qemu-gumstix qemu-leon2 qemu-lm32_evr qemu-or1k \
+ uC5282 lm3s6965 realview_pbx_a9_qemu realview_pbx_a9_qemu_smp \
xilinx_zynq_a9_qemu
OTHER_SCRIPTS=avrtest
@@ -46,6 +46,9 @@ qemu-leon2: gdb-sim-run.in qemu-leon2.in
qemu-lm32_evr: gdb-sim-run.in qemu-lm32_evr.in
./mkrun no LM32 lm32 qemu-lm32_evr
+qemu-or1k: gdb-sim-run.in qemu-or1k.in
+ ./mkrun no OR1K or1k qemu-or1k
+
uC5282: gdb-sim-run.in uC5282.in
./mkrun no M68K-Coldfire m68k uC5282
diff --git a/sim-scripts/qemu-or1k.in b/sim-scripts/qemu-or1k.in
new file mode 100644
index 0000000..a9c2974
--- /dev/null
+++ b/sim-scripts/qemu-or1k.in
@@ -0,0 +1,41 @@
+#
+# or1ksim/QEMU BSP Qemu Support
+#
+
+bspUsesGDBSimulator="no"
+# bspGeneratesGDBCommands="yes"
+# bspSupportsGDBServerMode="yes"
+runBSP=NOT_OVERRIDDEN
+if [ ! -r ${runBSP} ] ; then
+ runBSP=qemu-system-or32
+fi
+bspNeedsDos2Unix="yes"
+
+runARGS()
+{
+ if [ ${coverage} = yes ] ; then
+ COVERAGE_ARG="--exec-trace ${1}.cov"
+ fi
+
+ echo "-serial mon:stdio -serial /dev/null -net none -nographic -m 128M -kernel ${1}"
+}
+
+checkBSPFaults()
+{
+ return 0
+}
+
+bspLimit()
+{
+ testname=$1
+ case ${testname} in
+ *stackchk*)limit=5 ;;
+ *fatal*) limit=1 ;;
+ *minimum*) limit=1 ;;
+ *psxtime*) limit=270 ;;
+ *) limit=60 ;;
+ esac
+ echo ${limit}
+}
+
+bspGeneratesDeviceTree="no"