source: rtems-testing/sim-scripts/jmr3904.in @ 6effcd2

4.11
Last change on this file since 6effcd2 was 6effcd2, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 1, 2011 at 7:12:53 PM

2011-12-01 Joel Sherrill <joel.sherrill@…>

  • jmr3904.in: Add Data Bus Error to detected faults to exit simulator on.
  • Property mode set to 100644
File size: 718 bytes
Line 
1#
2#  MIPS JMR3904 Support
3#
4#  $Id$
5#
6
7runARGS()
8{
9  echo "--board=jmr3904 ${1}"
10}
11
12checkBSPFaults()
13{
14  logfile=$1
15  grep "^Unhandled exception" ${logfile}
16  exceptionExit=$?
17  grep "^mips-core: " ${logfile}
18  badAccessExit=$?
19  grep "Data Bus Error" ${logfile}
20  dataBusError=$?
21  if [ $badAccessExit -eq 0 -o $exceptionExit -eq 0 -o \
22       $dataBusError -eq 0 ] ; then
23    return 1
24  fi
25  return 0
26}
27
28bspLimit()
29{
30  testname=$1
31  case ${testname} in
32    *stackchk*)limit=5 ;;
33    *fatal*)   limit=1 ;;
34    *minimum*) limit=1 ;;
35    *psxtime*) limit=180 ;;
36    *)         limit=60 ;;
37  esac
38  echo ${limit}
39}
40
41bspGeneratesGDBCommands="yes"
42
43bspGenerateGDBCommands()
44{
45cat <<EOF
46tar sim --board=jmr3904
47load
48EOF
49}
Note: See TracBrowser for help on using the repository browser.