summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-07 01:37:52 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:10:15 +0000
commitd5b44338fd571534b36bf5999bf3fc76d4ba153d (patch)
tree2d91b932d75f36d7cfa7c25483d3a540d2c842c0 /src/systemc
parent6f261e67cc4f14574bead592bdb61b545d1438b6 (diff)
downloadgem5-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.hh2
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