From 464c485d0c7189e886d241ec36294d8d6b7c196e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 16 Oct 2011 05:06:40 -0700 Subject: SE/FS: Include getMemPort in FS. --- src/cpu/thread_state.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/cpu/thread_state.cc') diff --git a/src/cpu/thread_state.cc b/src/cpu/thread_state.cc index a0fd5d7a1..342574083 100644 --- a/src/cpu/thread_state.cc +++ b/src/cpu/thread_state.cc @@ -53,9 +53,10 @@ ThreadState::ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process) profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), kernelStats(NULL), #else - port(NULL), process(_process), + process(_process), #endif - virtPort(NULL), physPort(NULL), funcExeInst(0), storeCondFailures(0) + port(NULL), virtPort(NULL), physPort(NULL), funcExeInst(0), + storeCondFailures(0) { } @@ -153,8 +154,8 @@ ThreadState::profileSample() if (profile) profile->sample(profileNode, profilePC); } +#endif -#else TranslatingPort * ThreadState::getMemPort() { @@ -162,14 +163,17 @@ ThreadState::getMemPort() return port; /* Use this port to for syscall emulation writes to memory. */ - port = new TranslatingPort(csprintf("%s-%d-funcport", baseCpu->name(), _threadId), - process, TranslatingPort::NextPage); + port = new TranslatingPort(csprintf("%s-%d-funcport", baseCpu->name(), + _threadId), +#if !FULL_SYSTEM + process, +#endif + TranslatingPort::NextPage); connectToMemFunc(port); return port; } -#endif void ThreadState::connectToMemFunc(Port *port) -- cgit v1.2.3