changeset 2fcd223a253b in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2fcd223a253b
description:
        simple-thread: give a name() function for debugging w/the SimpleThread 
object

diffstat:

 src/cpu/simple_thread.hh |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r a1f59a213b35 -r 2fcd223a253b src/cpu/simple_thread.hh
--- a/src/cpu/simple_thread.hh  Sun Jun 19 21:43:33 2011 -0400
+++ b/src/cpu/simple_thread.hh  Sun Jun 19 21:43:33 2011 -0400
@@ -114,6 +114,11 @@
     bool predicate;
 
   public:
+    std::string name() const
+    {
+        return csprintf("%s.[tid:%i]", cpu->name(), tc->threadId());
+    }
+
     // pointer to CPU associated with this SimpleThread
     BaseCPU *cpu;
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to