From facb40f3ffce30cd9bc3b904eed5761d2d8b91c9 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 30 Oct 2011 00:33:02 -0700 Subject: SE/FS: Make getProcessPtr available in both modes, and get rid of FULL_SYSTEMs. --- src/cpu/inorder/thread_context.cc | 4 ---- src/cpu/inorder/thread_context.hh | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/cpu/inorder') diff --git a/src/cpu/inorder/thread_context.cc b/src/cpu/inorder/thread_context.cc index f5e55627c..8fc6ac75f 100644 --- a/src/cpu/inorder/thread_context.cc +++ b/src/cpu/inorder/thread_context.cc @@ -85,11 +85,7 @@ InOrderThreadContext::takeOverFrom(ThreadContext *old_context) { // some things should already be set up assert(getSystemPtr() == old_context->getSystemPtr()); -#if !FULL_SYSTEM assert(getProcessPtr() == old_context->getProcessPtr()); -#endif - - // copy over functional state setStatus(old_context->status()); diff --git a/src/cpu/inorder/thread_context.hh b/src/cpu/inorder/thread_context.hh index 9b071ee5d..95338c05c 100644 --- a/src/cpu/inorder/thread_context.hh +++ b/src/cpu/inorder/thread_context.hh @@ -142,10 +142,9 @@ class InOrderThreadContext : public ThreadContext { return this->thread->quiesceEvent; } -#else +#endif /** Returns a pointer to this thread's process. */ Process *getProcessPtr() { return thread->getProcessPtr(); } -#endif TranslatingPort *getMemPort() { return thread->getMemPort(); } -- cgit v1.2.3