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

Change subject: fastmodel: use ThreadContext sendFunc
......................................................................

fastmodel: use ThreadContext sendFunc

This change allows gdb to access TCM.

Change-Id: I75a7ce767cd7f080bae4b5d2ea6b7460ee9ef1b4
---
M src/arch/arm/fastmodel/iris/thread_context.cc
1 file changed, 6 insertions(+), 4 deletions(-)



diff --git a/src/arch/arm/fastmodel/iris/thread_context.cc b/src/arch/arm/fastmodel/iris/thread_context.cc
index ae9ae24..a1966e8 100644
--- a/src/arch/arm/fastmodel/iris/thread_context.cc
+++ b/src/arch/arm/fastmodel/iris/thread_context.cc
@@ -512,14 +512,16 @@
 void
 ThreadContext::initMemProxies(::ThreadContext *tc)
 {
+    auto func = [this] (PacketPtr pkt) { sendFunc(pkt); };
+    auto cacheLineSize = _cpu->cacheLineSize();
+
     if (FullSystem) {
         assert(!physProxy && !virtProxy);
-        physProxy.reset(new PortProxy(_cpu->getSendFunctional(),
-                                      _cpu->cacheLineSize()));
-        virtProxy.reset(new TranslatingPortProxy(tc));
+        physProxy.reset(new PortProxy(func, cacheLineSize));
+ virtProxy.reset(new TranslatingPortProxy(this, func, cacheLineSize));
     } else {
         assert(!virtProxy);
-        virtProxy.reset(new SETranslatingPortProxy(this,
+ virtProxy.reset(new SETranslatingPortProxy(this, func, cacheLineSize,
                         SETranslatingPortProxy::NextPage));
     }
 }

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45270
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: I75a7ce767cd7f080bae4b5d2ea6b7460ee9ef1b4
Gerrit-Change-Number: 45270
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-hsin Wang <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to