summaryrefslogtreecommitdiff
path: root/sim-scripts
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-04-21 09:06:01 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-04-21 09:06:01 -0500
commite997f7abbef9f467b102e9406025bf9ee6c67f24 (patch)
tree2f40d416edb3a607bc3a32d0d3620b5ceb2e2286 /sim-scripts
parentee6207cfcf1d48db54276c99398aa11e3809261e (diff)
jmr3904.in: Add ReservedInstruction as fatal message to detect
Diffstat (limited to 'sim-scripts')
-rw-r--r--sim-scripts/jmr3904.in48
1 files changed, 38 insertions, 10 deletions
diff --git a/sim-scripts/jmr3904.in b/sim-scripts/jmr3904.in
index decc8de..1e520ae 100644
--- a/sim-scripts/jmr3904.in
+++ b/sim-scripts/jmr3904.in
@@ -10,16 +10,43 @@ runARGS()
checkBSPFaults()
{
logfile=$1
+
+ for err in \
+ "^Unhandled exception" \
+ "^mips-core: " \
+ "Data Bus Error" \
+ "ReservedInstruction at PC =" \
+ "HILO: MFHI: MF"
+ do
+ grep "${err}" ${logfile}
+ if [ $? -eq 0 ]; then
+ return 1
+ fi
+ done
+
+ return 0
+
grep "^Unhandled exception" ${logfile}
- exceptionExit=$?
+ if [ $? -eq 0 ]; then
+ return 1
+ fi
+
grep "^mips-core: " ${logfile}
- badAccessExit=$?
+ if [ $? -eq 0 ]; then
+ return 1
+ fi
+
grep "Data Bus Error" ${logfile}
- dataBusError=$?
- if [ $badAccessExit -eq 0 -o $exceptionExit -eq 0 -o \
- $dataBusError -eq 0 ] ; then
+ if [ $? -eq 0 ]; then
return 1
fi
+
+ grep "ReservedInstruction at PC =" ${logfile}
+ if [ $? -eq 0 ]; then
+ return 1
+ fi
+
+
return 0
}
@@ -27,11 +54,12 @@ bspLimit()
{
testname=$1
case ${testname} in
- *stackchk*)limit=5 ;;
- *fatal*) limit=1 ;;
- *minimum*) limit=1 ;;
- *psxtime*) limit=180 ;;
- *) limit=60 ;;
+ *stackchk*) limit=5 ;;
+ *fatal*) limit=1 ;;
+ *minimum*) limit=1 ;;
+ *psxtime*) limit=180 ;;
+ *fsdosfsformat01*) limit=90 ;;
+ *) limit=60 ;;
esac
echo ${limit}
}