summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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