diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-01-30 18:27:16 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-01-30 18:27:16 -0500 |
commit | 36a1912bf01433acc86837ed60da6d510323aa1e (patch) | |
tree | 7d9c35533d7e6a1c46cd75b98658bf6e46a55d48 /src/cpu/base.hh | |
parent | cf0ba1dfb09c0e16201d963b76078625dc7adca4 (diff) | |
parent | ac36fb6e64dadb9eef5c48863b42969a61bbdaec (diff) | |
download | gem5-36a1912bf01433acc86837ed60da6d510323aa1e.tar.xz |
Merge zizzer:/bk/newmem
into zeep.pool:/z/saidi/work/m5.newmem
--HG--
extra : convert_revision : 276b640c5c5a51e88e9bd630960ad462d9f0cb8d
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 3ae9c60b6..a1265b748 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -142,6 +142,12 @@ class BaseCPU : public MemObject /// Notify the CPU that the indicated context is now halted. virtual void haltContext(int thread_num) {} + /// Given a Thread Context pointer return the thread num + int findContext(ThreadContext *tc); + + /// Given a thread num get tho thread context for it + ThreadContext *getContext(int tn) { return threadContexts[tn]; } + public: struct Params { |