Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/42585 )

Change subject: systemc,util: Update sc_master_port.cc now that params() returns a ref.
......................................................................

systemc,util: Update sc_master_port.cc now that params() returns a ref.

The params() methods (when they exist) now all return references instead
of pointers. Update sc_master_port.cc to work with this.

Change-Id: Ifa3c33e69ba9c16dc2b984784e7978b43714dbf2
---
M util/tlm/src/sc_master_port.cc
1 file changed, 1 insertion(+), 2 deletions(-)



diff --git a/util/tlm/src/sc_master_port.cc b/util/tlm/src/sc_master_port.cc
index 7b04921..ec17c2c 100644
--- a/util/tlm/src/sc_master_port.cc
+++ b/util/tlm/src/sc_master_port.cc
@@ -93,8 +93,7 @@
     transactor(nullptr),
     simControl(simControl)
 {
-    system =
-        dynamic_cast<const ExternalMasterParams*>(owner_.params())->system;
+ system = dynamic_cast<const ExternalMasterParams&>(owner_.params()).system;
 }

 void

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/42585
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: Ifa3c33e69ba9c16dc2b984784e7978b43714dbf2
Gerrit-Change-Number: 42585
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[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