SE/FS: Make getProcessPtr available in both modes, and get rid of FULL_SYSTEMs.

This commit is contained in:
Gabe Black
2011-10-30 00:33:02 -07:00
parent 5b433568f0
commit facb40f3ff
18 changed files with 118 additions and 295 deletions

View File

@@ -123,9 +123,8 @@ class OzoneCPU : public BaseCPU
TheISA::Kernel::Statistics *getKernelStats()
{ return thread->getKernelStats(); }
#else
Process *getProcessPtr() { return thread->getProcessPtr(); }
#endif
Process *getProcessPtr() { return thread->getProcessPtr(); }
TranslatingPort *getMemPort() { return thread->getMemPort(); }

View File

@@ -671,9 +671,8 @@ OzoneCPU<Impl>::OzoneTC::takeOverFrom(ThreadContext *old_context)
// some things should already be set up
#if FULL_SYSTEM
assert(getSystemPtr() == old_context->getSystemPtr());
#else
assert(getProcessPtr() == old_context->getProcessPtr());
#endif
assert(getProcessPtr() == old_context->getProcessPtr());
// copy over functional state
setStatus(old_context->status());