projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add protocol-agnostic ports in the port hierarchy
[gem5.git]
/
src
/
cpu
/
base.hh
diff --git
a/src/cpu/base.hh
b/src/cpu/base.hh
index 0c1d19856ec721b6a4fc75e37f95fb1eac2a44b4..91cef24ed4cc00cc9ff9cbefb6cd5e021aff1771 100644
(file)
--- a/
src/cpu/base.hh
+++ b/
src/cpu/base.hh
@@
-171,7
+171,8
@@
class BaseCPU : public MemObject
*
* @return a reference to the port with the given name
*/
*
* @return a reference to the port with the given name
*/
- MasterPort &getMasterPort(const std::string &if_name, int idx = -1);
+ BaseMasterPort &getMasterPort(const std::string &if_name,
+ PortID idx = InvalidPortID);
inline void workItemBegin() { numWorkItemsStarted++; }
inline void workItemEnd() { numWorkItemsCompleted++; }
inline void workItemBegin() { numWorkItemsStarted++; }
inline void workItemEnd() { numWorkItemsCompleted++; }