summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-05-02 02:16:33 -0700
committerGabe Black <gabeblack@google.com>2019-05-30 14:20:03 +0000
commit5365c18f2e309b54d3e37dc98d8cca20ec9d4219 (patch)
treeda93a5b6abd743177d3b5841436383fbc3a24836 /src/cpu
parent74e494e1a28562245d9733df61739ea3cc32f92d (diff)
downloadgem5-5365c18f2e309b54d3e37dc98d8cca20ec9d4219.tar.xz
arch, base, cpu, gpu, sim: Merge getMemProxy and getVirtProxy.
These two functions were performing the same function but had two different names for historical reasons. This change merges them together, keeping the getVirtProxy name to be consistent with the getPhysProxy method used to get a non-translating proxy port. Change-Id: Idd83c6b899f9343795075b030ccbc723a79e52a4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18581 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/checker/thread_context.hh6
-rw-r--r--src/cpu/o3/thread_context.hh6
-rw-r--r--src/cpu/simple_thread.hh6
-rw-r--r--src/cpu/thread_context.hh2
-rw-r--r--src/cpu/thread_state.cc9
-rw-r--r--src/cpu/thread_state.hh2
6 files changed, 0 insertions, 31 deletions
diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh
index 46ade24bb..2e5f31d77 100644
--- a/src/cpu/checker/thread_context.hh
+++ b/src/cpu/checker/thread_context.hh
@@ -164,12 +164,6 @@ class CheckerThreadContext : public ThreadContext
actualTC->connectMemPorts(tc);
}
- PortProxy &
- getMemProxy() override
- {
- return actualTC->getMemProxy();
- }
-
/** Executes a syscall in SE mode. */
void
syscall(int64_t callnum, Fault *fault) override
diff --git a/src/cpu/o3/thread_context.hh b/src/cpu/o3/thread_context.hh
index a3698cf2e..9029aba3e 100644
--- a/src/cpu/o3/thread_context.hh
+++ b/src/cpu/o3/thread_context.hh
@@ -140,12 +140,6 @@ class O3ThreadContext : public ThreadContext
thread->initMemProxies(tc);
}
- PortProxy &
- getMemProxy() override
- {
- return thread->getMemProxy();
- }
-
/** Returns this thread's status. */
Status status() const override { return thread->status(); }
diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh
index 991c6bd80..301e18d54 100644
--- a/src/cpu/simple_thread.hh
+++ b/src/cpu/simple_thread.hh
@@ -223,12 +223,6 @@ class SimpleThread : public ThreadState, public ThreadContext
ThreadState::initMemProxies(tc);
}
- PortProxy &
- getMemProxy() override
- {
- return ThreadState::getMemProxy();
- }
-
Process *getProcessPtr() override { return ThreadState::getProcessPtr(); }
void setProcessPtr(Process *p) override { ThreadState::setProcessPtr(p); }
diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh
index f8b69d096..0bd29302b 100644
--- a/src/cpu/thread_context.hh
+++ b/src/cpu/thread_context.hh
@@ -160,8 +160,6 @@ class ThreadContext
*/
virtual void initMemProxies(ThreadContext *tc) = 0;
- virtual PortProxy &getMemProxy() = 0;
-
virtual Process *getProcessPtr() = 0;
virtual void setProcessPtr(Process *p) = 0;
diff --git a/src/cpu/thread_state.cc b/src/cpu/thread_state.cc
index 3396c75c7..dc4a624a7 100644
--- a/src/cpu/thread_state.cc
+++ b/src/cpu/thread_state.cc
@@ -134,15 +134,6 @@ ThreadState::getPhysProxy()
PortProxy &
ThreadState::getVirtProxy()
{
- assert(FullSystem);
- assert(virtProxy != NULL);
- return *virtProxy;
-}
-
-PortProxy &
-ThreadState::getMemProxy()
-{
- assert(!FullSystem);
assert(virtProxy != NULL);
return *virtProxy;
}
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh
index db4a3f414..3e4b29c91 100644
--- a/src/cpu/thread_state.hh
+++ b/src/cpu/thread_state.hh
@@ -122,8 +122,6 @@ struct ThreadState : public Serializable {
}
}
- PortProxy &getMemProxy();
-
/** Reads the number of instructions functionally executed and
* committed.
*/