diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-07 01:37:52 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:10:15 +0000 |
commit | d5b44338fd571534b36bf5999bf3fc76d4ba153d (patch) | |
tree | 2d91b932d75f36d7cfa7c25483d3a540d2c842c0 /src/systemc | |
parent | 6f261e67cc4f14574bead592bdb61b545d1438b6 (diff) | |
download | gem5-d5b44338fd571534b36bf5999bf3fc76d4ba153d.tar.xz |
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 <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r-- | src/systemc/core/port.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |