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

Change subject: systemc: Fix how the maximum size is computed for sc_ports.
......................................................................

systemc: Fix how the maximum size is computed for sc_ports.

Change-Id: I073eb16cbeb892f24ac3860daca056ed2fb09086
---
M src/systemc/core/port.hh
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh
index fa98c60..b9f070f 100644
--- a/src/systemc/core/port.hh
+++ b/src/systemc/core/port.hh
@@ -168,7 +168,7 @@
     void regPort();

     int size() { return _size; }
-    int maxSize() { return _maxSize; }
+    int maxSize() { return _maxSize ? _maxSize : _size; }
 };

 } // namespace sc_gem5

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

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I073eb16cbeb892f24ac3860daca056ed2fb09086
Gerrit-Change-Number: 13325
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to