diff options
Diffstat (limited to 'src/learning_gem5/part2/simple_cache.hh')
-rw-r--r-- | src/learning_gem5/part2/simple_cache.hh | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/learning_gem5/part2/simple_cache.hh b/src/learning_gem5/part2/simple_cache.hh index 7d53ffed0..56859eb77 100644 --- a/src/learning_gem5/part2/simple_cache.hh +++ b/src/learning_gem5/part2/simple_cache.hh @@ -304,30 +304,17 @@ class SimpleCache : public MemObject SimpleCache(SimpleCacheParams *params); /** - * Get a master port with a given name and index. This is used at + * Get a port with a given name and index. This is used at * binding time and returns a reference to a protocol-agnostic - * base master port. + * port. * * @param if_name Port name * @param idx Index in the case of a VectorPort * * @return A reference to the given port */ - virtual BaseMasterPort& getMasterPort(const std::string& if_name, - PortID idx = InvalidPortID) override; - - /** - * Get a slave port with a given name and index. This is used at - * binding time and returns a reference to a protocol-agnostic - * base master port. - * - * @param if_name Port name - * @param idx Index in the case of a VectorPort - * - * @return A reference to the given port - */ - virtual BaseSlavePort& getSlavePort(const std::string& if_name, - PortID idx = InvalidPortID) override; + Port &getPort(const std::string &if_name, + PortID idx=InvalidPortID) override; /** * Register the stats |