changeset df6d844345f4 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=df6d844345f4
description:
        Added proc_id to CacheMsg for SMT.

        Not yet necessary, but in case each of the threads
        is allowed to initiate an atomic, will come in handy

diffstat:

1 file changed, 12 insertions(+), 1 deletion(-)
src/mem/slicc/symbols/Type.cc |   13 ++++++++++++-

diffs (37 lines):

diff -r e9e7ca667575 -r df6d844345f4 src/mem/slicc/symbols/Type.cc
--- a/src/mem/slicc/symbols/Type.cc     Fri Aug 14 14:24:15 2009 -0500
+++ b/src/mem/slicc/symbols/Type.cc     Fri Aug 14 15:30:07 2009 -0500
@@ -277,6 +277,11 @@
       string id = m_data_member_ident_vec[i];
       out << "const " << type->cIdent() << "& local_" << id;
     }
+
+    if (isMessage()) {
+      out << ", const unsigned local_proc_id" << flush;
+    }
+
     out << ")" << endl;
 
     // Call superclass constructor
@@ -293,7 +298,9 @@
         string next_line_value = 
m_data_member_pairs_vec[i].lookup("nextLineCallHack");
         out << "    m_" << id << next_line_value << ";" << endl;
       }
-
+    }
+    if (isMessage()) {
+      out << "    proc_id = local_proc_id;" << endl << flush;
     }
     out << "  }" << endl;
   } // end of if(!isGlobal())
@@ -428,6 +435,10 @@
     }
   }
 
+  if (isMessage()) {
+    out << "  unsigned proc_id;" << endl << flush;
+  }
+
   out << "};" << endl;  // End class
 
   out << "// Output operator declaration" << endl;
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to