diff options
author | Gabe Black <gabeblack@google.com> | 2019-03-07 03:02:35 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-03-19 10:22:50 +0000 |
commit | d3d24835bcc03ecf312ac6ba7df114656770730f (patch) | |
tree | 43bb564a7bc3e22ffd7b1b906f6f96742ecb619a /src/mem/mem_object.hh | |
parent | 378d9ccbeb4053aeeab002159b26625854af54f7 (diff) | |
download | gem5-d3d24835bcc03ecf312ac6ba7df114656770730f.tar.xz |
arch, cpu, dev, gpu, mem, sim, python: start using getPort.
Replace the getMasterPort, getSlavePort, and getEthPort functions
with getPort, and remove extraneous mechanisms that are no longer
necessary.
Change-Id: Iab7e3c02d2f3a0cf33e7e824e18c28646b5bc318
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17040
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/mem/mem_object.hh')
-rw-r--r-- | src/mem/mem_object.hh | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/mem/mem_object.hh b/src/mem/mem_object.hh index e12b30661..3ae9c4adf 100644 --- a/src/mem/mem_object.hh +++ b/src/mem/mem_object.hh @@ -54,8 +54,7 @@ #include "sim/clocked_object.hh" /** - * The MemObject class extends the ClockedObject with accessor functions - * to get its master and slave ports. + * The MemObject class extends the ClockedObject for historical reasons. */ class MemObject : public ClockedObject { @@ -65,32 +64,6 @@ class MemObject : public ClockedObject { return dynamic_cast<const Params *>(_params); } MemObject(const Params *params); - - /** - * Get a master 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 BaseMasterPort& getMasterPort(const std::string& if_name, - PortID idx = InvalidPortID); - - /** - * 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); }; #endif //__MEM_MEM_OBJECT_HH__ |