From d5b44338fd571534b36bf5999bf3fc76d4ba153d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 7 Oct 2018 01:37:52 -0700 Subject: [PATCH] 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 --- src/systemc/core/port.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2