summaryrefslogtreecommitdiffstats
path: root/sim-scripts/qemu-or1k.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim-scripts/qemu-or1k.in')
-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"