mem: Fix guest corruption when caches handle uncacheable accesses
[gem5.git] / src / mem / addr_mapper.hh
index f469b26bad2ff261b84ce11b3206e482c9c73e38..887635999ff1da25b543bf9f9dd8603b3d929aca 100644 (file)
@@ -62,11 +62,11 @@ class AddrMapper : public MemObject
 
     virtual ~AddrMapper() { }
 
-    virtual MasterPort& getMasterPort(const std::string& if_name,
-                                      int idx = -1);
+    virtual BaseMasterPort& getMasterPort(const std::string& if_name,
+                                          PortID idx = InvalidPortID);
 
-    virtual SlavePort& getSlavePort(const std::string& if_name,
-                                    int idx = -1);
+    virtual BaseSlavePort& getSlavePort(const std::string& if_name,
+                                        PortID idx = InvalidPortID);
 
     virtual void init();