diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2016-02-10 04:08:25 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2016-02-10 04:08:25 -0500 |
commit | 92f021cbbed84bc1d8ceee80b78fb9be1086819c (patch) | |
tree | d65dbb57bc3443e0cd19f30012c43d268f428c63 /src/mem/bridge.cc | |
parent | f84ee031ccdb63d016c6f55b578085a2e5af4a4b (diff) | |
download | gem5-92f021cbbed84bc1d8ceee80b78fb9be1086819c.tar.xz |
mem: Move the point of coherency to the coherent crossbar
This patch introduces the ability of making the coherent crossbar the
point of coherency. If so, the crossbar does not forward packets where
a cache with ownership has already committed to responding, and also
does not forward any coherency-related packets that are not intended
for a downstream memory controller. Thus, invalidations and upgrades
are turned around in the crossbar, and the memory controller only sees
normal reads and writes.
In addition this patch moves the express snoop promotion of a packet
to the crossbar, thus allowing the downstream cache to check the
express snoop flag (as it should) for bypassing any blocking, rather
than relying on whether a cache is responding or not.
Diffstat (limited to 'src/mem/bridge.cc')
-rw-r--r-- | src/mem/bridge.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc index 226647fdc..8a209e8b7 100644 --- a/src/mem/bridge.cc +++ b/src/mem/bridge.cc @@ -154,14 +154,8 @@ Bridge::BridgeSlavePort::recvTimingReq(PacketPtr pkt) DPRINTF(Bridge, "recvTimingReq: %s addr 0x%x\n", pkt->cmdString(), pkt->getAddr()); - // if a cache is responding, sink the packet without further - // action, also discard any packet that is not a read or a write - if (pkt->cacheResponding() || - !(pkt->isWrite() || pkt->isRead())) { - assert(!pkt->needsResponse()); - pendingDelete.reset(pkt); - return true; - } + panic_if(pkt->cacheResponding(), "Should not see packets where cache " + "is responding"); // we should not get a new request after committing to retry the // current one, but unfortunately the CPU violates this rule, so @@ -352,6 +346,9 @@ Bridge::BridgeSlavePort::recvRespRetry() Tick Bridge::BridgeSlavePort::recvAtomic(PacketPtr pkt) { + panic_if(pkt->cacheResponding(), "Should not see packets where cache " + "is responding"); + return delay * bridge.clockPeriod() + masterPort.sendAtomic(pkt); } |