Yu-hsin Wang has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/45580 )

Change subject: cpu: use tc->getFunctional
......................................................................

cpu: use tc->getFunctional

Change-Id: Ia2cc06dbd73d27bd5a3118e825b0fb5e30b42e9b
---
M src/arch/arm/fastmodel/iris/thread_context.cc
M src/cpu/thread_state.cc
M src/mem/translating_port_proxy.cc
3 files changed, 3 insertions(+), 3 deletions(-)



diff --git a/src/arch/arm/fastmodel/iris/thread_context.cc b/src/arch/arm/fastmodel/iris/thread_context.cc
index a29c3b0..0104ebc 100644
--- a/src/arch/arm/fastmodel/iris/thread_context.cc
+++ b/src/arch/arm/fastmodel/iris/thread_context.cc
@@ -499,7 +499,7 @@
 {
     if (FullSystem) {
         assert(!physProxy && !virtProxy);
-        physProxy.reset(new PortProxy(_cpu->getSendFunctional(),
+        physProxy.reset(new PortProxy(tc->getSendFunctional(),
                                       _cpu->cacheLineSize()));
         virtProxy.reset(new TranslatingPortProxy(tc));
     } else {
diff --git a/src/cpu/thread_state.cc b/src/cpu/thread_state.cc
index b59b2c6..8661210 100644
--- a/src/cpu/thread_state.cc
+++ b/src/cpu/thread_state.cc
@@ -91,7 +91,7 @@
         // This cannot be done in the constructor as the thread state
         // itself is created in the base cpu constructor and the
         // getSendFunctional is a virtual function
-        physProxy = new PortProxy(baseCpu->getSendFunctional(),
+        physProxy = new PortProxy(tc->getSendFunctional(),
                                   baseCpu->cacheLineSize());

         assert(virtProxy == NULL);
diff --git a/src/mem/translating_port_proxy.cc b/src/mem/translating_port_proxy.cc
index 3b35a8d..c700019 100644
--- a/src/mem/translating_port_proxy.cc
+++ b/src/mem/translating_port_proxy.cc
@@ -55,7 +55,7 @@

 TranslatingPortProxy::TranslatingPortProxy(
         ThreadContext *tc, Request::Flags _flags) :
-    PortProxy(tc->getCpuPtr()->getSendFunctional(),
+    PortProxy(tc->getSendFunctional(),
               tc->getSystemPtr()->cacheLineSize()), _tc(tc),
               pageBytes(tc->getSystemPtr()->getPageBytes()),
               flags(_flags)

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45580
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ia2cc06dbd73d27bd5a3118e825b0fb5e30b42e9b
Gerrit-Change-Number: 45580
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-hsin Wang <yuhsi...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to