From 8ad2b8c5596b817267fbf7a39e6ce28ffb49789c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 31 Oct 2011 02:58:22 -0700 Subject: SE/FS: Make the functions available from the TC consistent between SE and FS. --- src/cpu/inorder/thread_context.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cpu/inorder/thread_context.hh') diff --git a/src/cpu/inorder/thread_context.hh b/src/cpu/inorder/thread_context.hh index 95338c05c..daba6e6b6 100644 --- a/src/cpu/inorder/thread_context.hh +++ b/src/cpu/inorder/thread_context.hh @@ -113,6 +113,7 @@ class InOrderThreadContext : public ThreadContext /** Returns a pointer to physical memory. */ PhysicalMemory *getPhysMemPtr() { assert(0); return 0; /*return cpu->physmem;*/ } +#endif /** Returns a pointer to this thread's kernel statistics. */ TheISA::Kernel::Statistics *getKernelStats() @@ -142,7 +143,7 @@ class InOrderThreadContext : public ThreadContext { return this->thread->quiesceEvent; } -#endif + /** Returns a pointer to this thread's process. */ Process *getProcessPtr() { return thread->getProcessPtr(); } @@ -271,11 +272,9 @@ class InOrderThreadContext : public ThreadContext * misspeculating, this is set as false. */ bool misspeculating() { return false; } -#if !FULL_SYSTEM /** Executes a syscall in SE mode. */ void syscall(int64_t callnum) { return cpu->syscall(callnum, thread->threadId()); } -#endif /** Reads the funcExeInst counter. */ Counter readFuncExeInst() { return thread->funcExeInst; } -- cgit v1.2.3