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

Hesham ALMatary heshamelmatary at gmail.com
Mon Sep 8 12:51:14 UTC 2014


---
 sim-scripts/Makefile     |  7 +++++--
 sim-scripts/qemu-or1k.in | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100644 sim-scripts/qemu-or1k.in

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..031190a
--- /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"
-- 
1.9.3



More information about the devel mailing list