MEM: Introduce the master/slave port sub-classes in C++
[gem5.git] / src / sim / system.cc
index 4601d2d52f2ad34300136240246b56b62c67bdaf..2c5d4e44b29ffa8fe3438b4422727a8a2198c991 100644 (file)
@@ -174,11 +174,11 @@ System::init()
         panic("System port on %s is not connected.\n", name());
 }
 
-Port*
-System::getPort(const std::string &if_name, int idx)
+MasterPort&
+System::getMasterPort(const std::string &if_name, int idx)
 {
     // no need to distinguish at the moment (besides checking)
-    return &_systemPort;
+    return _systemPort;
 }
 
 void