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

Change subject: sim: Make PortProxy args in BaseBufferArg const ref.
......................................................................

sim: Make PortProxy args in BaseBufferArg const ref.

That allows us to pass temporaries as the PortProxy arguments to these
functions. The thing behind the proxy may need to change, but the proxy
itself does not.

Change-Id: Ia9e09753b653107491cc12aa965e3662550208d1
---
M src/sim/syscall_emul_buf.hh
1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/src/sim/syscall_emul_buf.hh b/src/sim/syscall_emul_buf.hh
index 2a79ccd..8e2f3ac 100644
--- a/src/sim/syscall_emul_buf.hh
+++ b/src/sim/syscall_emul_buf.hh
@@ -75,7 +75,7 @@
      * copy data into simulator space (read from target memory)
      */
     bool
-    copyIn(PortProxy &memproxy)
+    copyIn(const PortProxy &memproxy)
     {
         memproxy.readBlob(addr, bufPtr, size);
         return true;    // no EFAULT detection for now
@@ -85,7 +85,7 @@
      * copy data out of simulator space (write to target memory)
      */
     bool
-    copyOut(PortProxy &memproxy)
+    copyOut(const PortProxy &memproxy)
     {
         memproxy.writeBlob(addr, bufPtr, size);
         return true;    // no EFAULT detection for now

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45906
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: Ia9e09753b653107491cc12aa965e3662550208d1
Gerrit-Change-Number: 45906
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