diff options
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r-- | src/cpu/thread_state.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index dbae85998..525ecca86 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -66,9 +66,9 @@ struct ThreadState { typedef ThreadContext::Status Status; #if FULL_SYSTEM - ThreadState(BaseCPU *cpu, int _tid); + ThreadState(BaseCPU *cpu, ThreadID _tid); #else - ThreadState(BaseCPU *cpu, int _tid, Process *_process, short _asid); + ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process, short _asid); #endif ~ThreadState(); @@ -83,9 +83,9 @@ struct ThreadState { void setContextId(int id) { _contextId = id; } - void setThreadId(int id) { _threadId = id; } + void setThreadId(ThreadID id) { _threadId = id; } - int threadId() { return _threadId; } + ThreadID threadId() { return _threadId; } Tick readLastActivate() { return lastActivate; } @@ -176,7 +176,7 @@ struct ThreadState { int _contextId; // Index of hardware thread context on the CPU that this represents. - int _threadId; + ThreadID _threadId; public: /** Last time activate was called on this thread. */ |