summaryrefslogtreecommitdiff
path: root/src/mem/bus.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/bus.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/bus.hh')
-rw-r--r--src/mem/bus.hh14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mem/bus.hh b/src/mem/bus.hh
index 941389296..3d7f4ad65 100644
--- a/src/mem/bus.hh
+++ b/src/mem/bus.hh
@@ -62,9 +62,6 @@ class Bus : public MemObject
AddrRangeList defaultRange;
std::vector<DevMap> portSnoopList;
- std::vector<int> snoopCallbacks;
-
-
/** Function called by the port when the bus is recieving a Timing
transaction.*/
bool recvTiming(Packet *pkt);
@@ -105,16 +102,11 @@ class Bus : public MemObject
/** Snoop all relevant ports atomicly. */
void atomicSnoop(Packet *pkt);
- /** Snoop for NACK and Blocked in phase 1
+ /** Call snoop on caches, be sure to set SNOOP_COMMIT bit if you want
+ * the snoop to happen
* @return True if succeds.
*/
- bool timingSnoopPhase1(Packet *pkt);
-
- /** @todo Don't need to commit all snoops just those that need it
- *(register somehow). */
- /** Commit all snoops now that we know if any of them would have blocked.
- */
- void timingSnoopPhase2(Packet *pkt);
+ bool timingSnoop(Packet *pkt);
/** Process address range request.
* @param resp addresses that we can respond to