diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-27 12:46:55 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-27 12:46:55 -0700 |
commit | 8705b0799bddef95d9957a03ee7ffb8fbb1bdec7 (patch) | |
tree | e88556f685082eded2ccb35a829061e8a6a21e94 /src | |
parent | 0cbcb715e0f6f2f7b1338d37e641ef931247748f (diff) | |
download | gem5-8705b0799bddef95d9957a03ee7ffb8fbb1bdec7.tar.xz |
packet: get rid of unused intersect() function.
--HG--
extra : convert_revision : f0a2947ccc49e0d18bc17a59371fa396d9ebd6c0
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/packet.cc | 12 | ||||
-rw-r--r-- | src/mem/packet.hh | 3 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/mem/packet.cc b/src/mem/packet.cc index 8cd356768..c7c6ec083 100644 --- a/src/mem/packet.cc +++ b/src/mem/packet.cc @@ -152,18 +152,6 @@ Packet::allocate() data = new uint8_t[getSize()]; } -/** Do the packet modify the same addresses. */ -bool -Packet::intersect(PacketPtr p) -{ - Addr s1 = getAddr(); - Addr e1 = getAddr() + getSize() - 1; - Addr s2 = p->getAddr(); - Addr e2 = p->getAddr() + p->getSize() - 1; - - return !(s1 > e2 || e1 < s2); -} - bool Packet::checkFunctional(Addr addr, int size, uint8_t *data) diff --git a/src/mem/packet.hh b/src/mem/packet.hh index c6534d6c9..2b650a51e 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -564,9 +564,6 @@ class Packet : public FastAlloc /** If there isn't data in the packet, allocate some. */ void allocate(); - /** Do the packet modify the same addresses. */ - bool intersect(PacketPtr p); - /** * Check a functional request against a memory value represented * by a base/size pair and an associated data array. If the |