From f2dd818856a4b6f38b60068bcaaf2560bdad3925 Mon Sep 17 00:00:00 2001 From: yeom Date: Sat, 17 Jul 2010 18:58:33 +0000 Subject: [PATCH] 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. --- Robust/src/IR/Flat/BuildCode.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()+ "];"); -- 2.34.1