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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user