summaryrefslogtreecommitdiff
path: root/mem/port.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-02-21 12:32:45 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-02-21 12:32:45 -0500
commit944646124e3d1222601294f62c78754c6705a2d6 (patch)
tree863dcb04c089dec8eb9b1e6321639f4bb6ca5e8a /mem/port.hh
parent00264ff1b87dc649fbe0fb857f38b9b057437bb4 (diff)
downloadgem5-944646124e3d1222601294f62c78754c6705a2d6.tar.xz
Rename Port address range functions... like the block size
functions, the send/recv*Query naming seems awkward. Also create a typedef for AddrRangeList. --HG-- extra : convert_revision : dd0ff3fad06ec329c82c199700d0a6264f1271d3
Diffstat (limited to 'mem/port.hh')
-rw-r--r--mem/port.hh19
1 files changed, 14 insertions, 5 deletions
diff --git a/mem/port.hh b/mem/port.hh
index 3098b663c..c6dcb5d81 100644
--- a/mem/port.hh
+++ b/mem/port.hh
@@ -46,6 +46,15 @@
#include "mem/packet.hh"
#include "mem/request.hh"
+/** This typedef is used to clean up the parameter list of
+ * getDeviceAddressRanges() and getPeerAddressRanges(). It's declared
+ * outside the Port object since it's also used by some mem objects.
+ * Eventually we should move this typedef to wherever Addr is
+ * defined.
+ */
+
+typedef std::list<Range<Addr> > AddrRangeList;
+
/**
* Ports are used to interface memory objects to
* each other. They will always come in pairs, and we refer to the other
@@ -123,8 +132,9 @@ class Port
an object wants to own some ranges and snoop on others, it will
need to use two different ports.
*/
- virtual void recvAddressRangesQuery(std::list<Range<Addr> > &range_list,
- bool &owner) { panic("??"); }
+ virtual void getDeviceAddressRanges(AddrRangeList &range_list,
+ bool &owner)
+ { panic("??"); }
public:
@@ -172,9 +182,8 @@ class Port
/** Called by the associated device if it wishes to find out the address
ranges connected to the peer ports devices.
*/
- void sendAddressRangesQuery(std::list<Range<Addr> > &range_list,
- bool &owner)
- { peer->recvAddressRangesQuery(range_list, owner); }
+ void getPeerAddressRanges(AddrRangeList &range_list, bool &owner)
+ { peer->getDeviceAddressRanges(range_list, owner); }
// Do we need similar wrappers for sendAtomic()? If not, should
// we drop the "Functional" from the names?