From: jjenista Date: Tue, 9 Nov 2010 02:23:05 +0000 (+0000) Subject: reorganize stall code X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c30f5a2faa1e8cead87154cdf9184787aaba0d0b;p=IRC.git reorganize stall code --- diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 732e5a83..6b1e0d06 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -3125,6 +3125,8 @@ public class BuildCode { output.println(" stallrecord->rcrRecords[0].flag=0;"); output.println(" stallrecord->rcrRecords[0].next=NULL;"); output.println(" stallrecord->common.parentsStallSem=&runningSESEstallSem;"); + output.println(" psem_reset( &runningSESEstallSem);"); + output.println(" stallrecord->tag=runningSESEstallSem.tag;"); TempDescriptor stalltd=null; for (Iterator iterator = waitingElementSet.iterator(); iterator.hasNext();) { @@ -3136,10 +3138,6 @@ public class BuildCode { } else { throw new Error("Fine-grained conflict: This should not happen in RCR"); } - output.println(" rentry->parentStallSem=&runningSESEstallSem;"); - output.println(" psem_reset( &runningSESEstallSem);"); - output.println(" rentry->tag=runningSESEstallSem.tag;"); - output.println(" stallrecord->tag=rentry->tag;"); output.println(" rentry->queue=runningSESE->memoryQueueArray[" + waitingElement.getQueueID() + "];"); output.println(" if(ADDRENTRY(runningSESE->memoryQueueArray["