summaryrefslogtreecommitdiff
path: root/src/mem/cache/cache_impl.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-10-08 18:48:03 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-10-08 18:48:03 -0400
commit1345183a89a148bf48110c4559448dd708549252 (patch)
treef529e34699e77352827f502b3811ed459585858f /src/mem/cache/cache_impl.hh
parentc2f954ac692e664ba105f94c64c8c408cf1b4380 (diff)
downloadgem5-1345183a89a148bf48110c4559448dd708549252.tar.xz
Move away from using the statusChange function on snoops. Clean up snooping code in general.
--HG-- extra : convert_revision : 5a57bfd7742a212047fc32e8cae0dc602fdc915c
Diffstat (limited to 'src/mem/cache/cache_impl.hh')
-rw-r--r--src/mem/cache/cache_impl.hh13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh
index 46f4b0ebe..0d625054c 100644
--- a/src/mem/cache/cache_impl.hh
+++ b/src/mem/cache/cache_impl.hh
@@ -72,16 +72,9 @@ doTimingAccess(Packet *pkt, CachePort *cachePort, bool isCpuSide)
if (pkt->isResponse())
handleResponse(pkt);
else {
- //Check if we are in phase1
- if (!snoopPhase2) {
- snoopPhase2 = true;
- }
- else {
- //Check if we should do the snoop
- if (pkt->flags && SNOOP_COMMIT)
- snoop(pkt);
- snoopPhase2 = false;
- }
+ //Check if we should do the snoop
+ if (pkt->flags && SNOOP_COMMIT)
+ snoop(pkt);
}
}
return true;