From 47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 26 May 2009 09:23:13 -0700 Subject: types: add a type for thread IDs and try to use it everywhere --- src/cpu/inorder/thread_state.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cpu/inorder/thread_state.hh') diff --git a/src/cpu/inorder/thread_state.hh b/src/cpu/inorder/thread_state.hh index eb4fe40b2..803659487 100644 --- a/src/cpu/inorder/thread_state.hh +++ b/src/cpu/inorder/thread_state.hh @@ -67,8 +67,10 @@ class InOrderThreadState : public ThreadState { bool trapPending; - InOrderThreadState(InOrderCPU *_cpu, int _thread_num, Process *_process, int _asid) - : ThreadState(reinterpret_cast(_cpu), 0/*_thread_num*/, _process, 0/*_asid*/), + InOrderThreadState(InOrderCPU *_cpu, ThreadID _thread_num, + Process *_process, int _asid) + : ThreadState(reinterpret_cast(_cpu), 0/*_thread_num*/, + _process, 0/*_asid*/), cpu(_cpu), inSyscall(0), trapPending(0) { } -- cgit v1.2.3