Port: Add protocol-agnostic ports in the port hierarchy
[gem5.git] / src / cpu / base.hh
index 0c1d19856ec721b6a4fc75e37f95fb1eac2a44b4..91cef24ed4cc00cc9ff9cbefb6cd5e021aff1771 100644 (file)
@@ -171,7 +171,8 @@ class BaseCPU : public MemObject
      *
      * @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++; }