From: jzhou Date: Sat, 16 May 2009 00:33:57 +0000 (+0000) Subject: updates for multicore runtime to support Tilera X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ef080954f787700245872f58c70e76444f0f50c5;p=IRC.git updates for multicore runtime to support Tilera --- diff --git a/Robust/src/Runtime/multicoretask.c b/Robust/src/Runtime/multicoretask.c index b47a6203..3e68d45d 100644 --- a/Robust/src/Runtime/multicoretask.c +++ b/Robust/src/Runtime/multicoretask.c @@ -1078,6 +1078,7 @@ void addAliasLock(void * ptr, int lock) { * b -- lock release with redirect info * c -- status confirm request * d -- status report msg + * e -- terminate * * ObjMsg: 0 + size of msg + obj's address + (task index + param index)+ * StallMsg: 1 + corenum + sendobjs + receiveobjs (size is always 4 * sizeof(int)) @@ -1092,6 +1093,7 @@ void addAliasLock(void * ptr, int lock) { * StatusMsg: c (size is always 1 * sizeof(int)) * d + status + corenum (size is always 3 * sizeof(int)) * status: 0 -- stall; 1 -- busy + * TerminateMsg: e (size is always 1 * sizeof(int) */ #ifdef PROFILE @@ -1676,6 +1678,15 @@ msg: } break; } + + case 0xe: { + // receive a terminate msg +#ifdef DEBUG + BAMBOO_DEBUGPRINT(0xe889); +#endif + BAMBOO_EXIT(0); + break; + } default: break; @@ -1686,7 +1697,7 @@ msg: msgtype = -1; msglength = 30; #ifdef DEBUG - BAMBOO_DEBUGPRINT(0xe889); + BAMBOO_DEBUGPRINT(0xe88a); #endif if(BAMBOO_MSG_AVAIL() != 0) { @@ -1701,7 +1712,7 @@ msg: } else { // not a whole msg #ifdef DEBUG - BAMBOO_DEBUGPRINT(0xe895); + BAMBOO_DEBUGPRINT(0xe88b); #endif #ifdef PROFILE /* if(isInterrupt) { diff --git a/Robust/src/buildscript b/Robust/src/buildscript index 3c67ce0c..b16fb290 100755 --- a/Robust/src/buildscript +++ b/Robust/src/buildscript @@ -501,6 +501,7 @@ then # TILERAFLAG TILERADIR="$CURDIR/tilera" MAKEFILE="Makefile.tilera.$TILERACONFIG" SIMHVC="sim.hvc.$TILERACONFIG" +PCIHVC="pci.hvc.$TILERACONFIG" mkdir $TILERADIR cd $TILERADIR make clean @@ -540,6 +541,7 @@ fi #INTERRUPT version cp $ROBUSTROOT/Runtime/Tilera/$MAKEFILE ./Makefile cp $ROBUSTROOT/Runtime/Tilera/$SIMHVC ./sim.hvc +cp $ROBUSTROOT/Runtime/Tilera/$PCIHVC ./pci.hvc cp ../Runtime/multicoretask.c ./ cp ../Runtime/multicoreruntime.c ./ cp ../Runtime/Queue.c ./