summaryrefslogblamecommitdiffstats
path: root/sim-scripts/jmr3904.in
blob: 1e520ae59cf2cc952d72782f961525a49dafbdb3 (plain) (tree)
1
2
3
4
5
6
7


                        
 
         
 
                             




                















                                   
                                        



                       
                                



                       
                                  
                       

            






                                               





             
                     





                                   
      
               
 









                             
#
#  MIPS JMR3904 Support 
#

runARGS()
{
  echo "--board=jmr3904 ${1}"
}

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}
  if [ $? -eq 0 ]; then
    return 1
  fi

  grep "^mips-core: " ${logfile}
  if [ $? -eq 0 ]; then
    return 1
  fi

  grep "Data Bus Error" ${logfile}
  if [ $? -eq 0 ]; then
    return 1
  fi

  grep "ReservedInstruction at PC =" ${logfile}
  if [ $? -eq 0 ]; then
    return 1
  fi


  return 0
}

bspLimit()
{
  testname=$1
  case ${testname} in
    *stackchk*)        limit=5 ;;
    *fatal*)           limit=1 ;;
    *minimum*)         limit=1 ;;
    *psxtime*)         limit=180 ;;
    *fsdosfsformat01*) limit=90 ;;
    *)                 limit=60 ;;
  esac
  echo ${limit}
}

bspGeneratesGDBCommands="yes"

bspGenerateGDBCommands()
{
cat <<EOF
tar sim --board=jmr3904
load
EOF
}