[rtems-testing commit] sim-scripts: add new script to run or1k/

Joel Sherrill joel at rtems.org
Mon Sep 29 19:48:38 UTC 2014


 or1ksim on qemu.
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Module:    rtems-testing
Branch:    master
Commit:    6b84783cb62f145c2a37e0dbe11c3a161ad1fd5b
Changeset: http://git.rtems.org/rtems-testing/commit/?id=6b84783cb62f145c2a37e0dbe11c3a161ad1fd5b

Author:    Hesham ALMatary <heshamelmatary at gmail.com>
Date:      Mon Sep  8 07:51:14 2014 -0500

sim-scripts: add new script to run or1k/or1ksim on qemu.

---

 sim-scripts/Makefile     |    7 +++++--
 sim-scripts/qemu-or1k.in |   41 +++++++++++++++++++++++++++++++++++++++++
 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"



More information about the vc mailing list