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:
Gabe Black
2018-10-07 01:37:52 -07:00
parent 6f261e67cc
commit d5b44338fd

View File

@@ -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