summaryrefslogtreecommitdiff
path: root/sim-scripts/qemu-or1k.in
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 /sim-scripts/qemu-or1k.in
parent3031a8a7018a0470415ad9eeda81df5ea876f583 (diff)
sim-scripts: add new script to run or1k/or1ksim on qemu.
Diffstat (limited to '')
-rw-r--r--sim-scripts/qemu-or1k.in41
1 files changed, 41 insertions, 0 deletions
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"