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/thread_context.hh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/cpu/thread_context.hh') diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh index 51ca3cca6..3e37572d8 100644 --- a/src/cpu/thread_context.hh +++ b/src/cpu/thread_context.hh @@ -234,9 +234,16 @@ class ThreadContext virtual void setMiscReg(int misc_reg, const MiscReg &val) = 0; - virtual uint64_t readRegOtherThread(int misc_reg, unsigned tid) { return 0; } + virtual uint64_t + readRegOtherThread(int misc_reg, ThreadID tid) + { + return 0; + } - virtual void setRegOtherThread(int misc_reg, const MiscReg &val, unsigned tid) { }; + virtual void + setRegOtherThread(int misc_reg, const MiscReg &val, ThreadID tid) + { + } // Also not necessarily the best location for these two. Hopefully will go // away once we decide upon where st cond failures goes. -- cgit v1.2.3