From: yeom Date: Sat, 17 Jul 2010 18:58:33 +0000 (+0000) Subject: bug fix: previously assumed that all stalled tempDesc belongs to local struct, but... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f2dd818856a4b6f38b60068bcaaf2560bdad3925;p=IRC.git bug fix: previously assumed that all stalled tempDesc belongs to local struct, but it's wrong. It is better way to generate temp descriptor for parent stall site. --- diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 3b6c8a85..3bd86e8d 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -2870,8 +2870,7 @@ public class BuildCode { if( waitingElement.getStatus() >= ConflictNode.COARSE ){ output.println(" rentry=mlpCreateREntry("+ waitingElement.getStatus()+ ", seseCaller);"); }else{ - output.println(" rentry=mlpCreateFineREntry("+ waitingElement.getStatus()+ ", seseCaller, (void*)&___locals___."+ waitingElement.getDynID() + ");"); - // output.println(" rentry=mlpCreateFineREntry("+ waitingElement.getStatus()+ ", seseCaller, ___locals___."+ waitingElement.getDynID() + "->oid);"); + output.println(" rentry=mlpCreateFineREntry("+ waitingElement.getStatus()+ ", seseCaller, (void*)&" +generateTemp(fm,waitingElement.getTempDesc(),lb)+ ");"); } output.println(" psem_init( &(rentry->parentStallSem) );"); output.println(" rentry->queue=seseCaller->memoryQueueArray["+ waitingElement.getQueueID()+ "];");