fix bug alokika found...
authorbdemsky <bdemsky>
Mon, 4 Feb 2008 09:44:16 +0000 (09:44 +0000)
committerbdemsky <bdemsky>
Mon, 4 Feb 2008 09:44:16 +0000 (09:44 +0000)
Robust/src/IR/Flat/BuildCode.java

index 9657fd0e3477e171a285ba2731d3ed541a66c563..347dd4f29ce6dd2991c0c147b444e73aa5ad6533 100644 (file)
@@ -2106,7 +2106,12 @@ public class BuildCode {
 
        if (state.DSM && locality.getAtomic(lb).get(fsen).intValue()>0) {
            Integer statussrc=locality.getNodePreTempInfo(lb,fsen).get(fsen.getSrc());
+           Integer statusdst=locality.getNodePreTempInfo(lb,fsen).get(fsen.getDst());
            boolean srcglobal=statussrc==LocalityAnalysis.GLOBAL;
+           boolean dstglobal=statusdst==LocalityAnalysis.GLOBAL;
+           if (dstglobal) {
+               output.println("*((unsigned int *)&("+generateTemp(fm,fsen.getDst(),lb)+"->___localcopy___))|=DIRTY;");
+           }
            if (srcglobal) {
                output.println("{");
                String src=generateTemp(fm, fsen.getSrc(), lb);