diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2008-11-04 11:35:42 -0500 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2008-11-04 11:35:42 -0500 |
commit | dd99ff23c6a71f7173014b5008d0cf12b7ef223a (patch) | |
tree | 01ce6020c898958712699adffe3a1a5a5c9e058d /src/cpu/thread_state.hh | |
parent | d857faf073895dcfde97141bd6346fe5d4317f8e (diff) | |
download | gem5-dd99ff23c6a71f7173014b5008d0cf12b7ef223a.tar.xz |
get rid of all instances of readTid() and getThreadNum(). Unify and eliminate
redundancies with threadId() as their replacement.
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r-- | src/cpu/thread_state.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index fdb2ab0ab..4465ce635 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -84,9 +84,9 @@ struct ThreadState { void setContextId(int id) { _contextId = id; } - void setTid(int id) { tid = id; } + void setThreadId(int id) { _threadId = id; } - int readTid() { return tid; } + int threadId() { return _threadId; } Tick readLastActivate() { return lastActivate; } @@ -177,7 +177,7 @@ struct ThreadState { int _contextId; // Index of hardware thread context on the CPU that this represents. - int tid; + int _threadId; public: /** Last time activate was called on this thread. */ |