summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpu/simple_thread.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh
index dcf0663e2..a74616a0d 100644
--- a/src/cpu/simple_thread.hh
+++ b/src/cpu/simple_thread.hh
@@ -114,6 +114,11 @@ class SimpleThread : public ThreadState
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;