simple-thread: give a name() function for debugging w/the SimpleThread object

This commit is contained in:
Korey Sewell 2011-06-19 21:43:33 -04:00
parent 76c60c5f93
commit b2e5152e16

View file

@ -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;