From: Gabe Black Date: Sun, 7 Oct 2018 08:37:52 +0000 (-0700) Subject: systemc: Fix how the maximum size is computed for sc_ports. X-Git-Tag: v19.0.0.0~1500 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5b44338fd571534b36bf5999bf3fc76d4ba153d;p=gem5.git systemc: Fix how the maximum size is computed for sc_ports. Change-Id: I073eb16cbeb892f24ac3860daca056ed2fb09086 Reviewed-on: https://gem5-review.googlesource.com/c/13325 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh index fa98c6002..b9f070ffb 100644 --- a/src/systemc/core/port.hh +++ b/src/systemc/core/port.hh @@ -168,7 +168,7 @@ class Port void regPort(); int size() { return _size; } - int maxSize() { return _maxSize; } + int maxSize() { return _maxSize ? _maxSize : _size; } }; } // namespace sc_gem5