probe function no longer used anywhere.
authorLisa Hsu <hsul@eecs.umich.edu>
Thu, 23 Oct 2008 20:49:13 +0000 (16:49 -0400)
committerLisa Hsu <hsul@eecs.umich.edu>
Thu, 23 Oct 2008 20:49:13 +0000 (16:49 -0400)
src/mem/cache/cache.hh
src/mem/cache/tags/fa_lru.cc
src/mem/cache/tags/fa_lru.hh
src/mem/cache/tags/iic.cc
src/mem/cache/tags/iic.hh
src/mem/cache/tags/lru.cc
src/mem/cache/tags/lru.hh

index cff3fd28b705fa63c39b236817227ab923b97edb..510e67ba60bde3fb1d9b9d2526274245b9b5eb82 100644 (file)
@@ -172,7 +172,6 @@ class Cache : public BaseCache
      * Populates a cache block and handles all outstanding requests for the
      * satisfied fill request. This version takes two memory requests. One
      * contains the fill data, the other is an optional target to satisfy.
-     * Used for Cache::probe.
      * @param pkt The memory request with the fill data.
      * @param blk The cache block if it already exists.
      * @param writebacks List for any writebacks that need to be performed.
index 607e89a75093f0bc4de2810b33dec61f8db8993a..8a2f4eb1382d41a2ee31a8cafb90c10f628da222 100644 (file)
@@ -144,14 +144,6 @@ FALRU::hashLookup(Addr addr) const
     return NULL;
 }
 
-bool
-FALRU::probe(Addr addr) const
-{
-    Addr blkAddr = blkAlign(addr);
-    FALRUBlk* blk = hashLookup(blkAddr);
-    return blk && blk->tag == blkAddr && blk->isValid();
-}
-
 void
 FALRU::invalidateBlk(FALRU::BlkType *blk)
 {
index cabcf18b47c61b1a09543bf8dfa632bb297dac42..43b3b5832033af3612ea9256d074ec4808cad30d 100644 (file)
@@ -164,14 +164,6 @@ public:
      */
     void regStats(const std::string &name);
 
-    /**
-     * Return true if the address is found in the cache.
-     * @param asid The address space ID.
-     * @param addr The address to look for.
-     * @return True if the address is in the cache.
-     */
-    bool probe(Addr addr) const;
-
     /**
      * Invalidate a cache block.
      * @param blk The block to invalidate.
index af9a75d43252e185c24b2447051e7adedfc4d90e..31fd87df6d133148017e4884a3a0d8254bcd702b 100644 (file)
@@ -219,12 +219,6 @@ IIC::regStats(const string &name)
         ;
 }
 
-// probe cache for presence of given block.
-bool
-IIC::probe(Addr addr) const
-{
-    return (findBlock(addr) != NULL);
-}
 
 IICTag*
 IIC::findBlock(Addr addr, int &lat)
index c9d080683f0235a93bb8a37abe23ca475bd097f4..0d513cf92a67d1446c517360bf1ee581a652aae2 100644 (file)
@@ -384,14 +384,6 @@ class IIC : public BaseTags
         return (addr & ~(Addr)blkMask);
     }
 
-    /**
-     * Check for the address in the tagstore.
-     * @param asid The address space ID.
-     * @param addr The address to find.
-     * @return true if it is found.
-     */
-    bool probe(Addr addr) const;
-
     /**
      * Swap the position of two tags.
      * @param index1 The first tag location.
index 7fb5318a078bce235ca28ad8391d4ee26b6506b1..2a82202e01a4fde079794bec320852c7d17bc50a 100644 (file)
@@ -150,19 +150,6 @@ LRU::~LRU()
     delete [] sets;
 }
 
-// probe cache for presence of given block.
-bool
-LRU::probe(Addr addr) const
-{
-    //  return(findBlock(Read, addr, asid) != 0);
-    Addr tag = extractTag(addr);
-    unsigned myset = extractSet(addr);
-
-    LRUBlk *blk = sets[myset].findBlk(tag);
-
-    return (blk != NULL);       // true if in cache
-}
-
 LRUBlk*
 LRU::findBlock(Addr addr, int &lat)
 {
index 65be492de92bbbbf306e5ab6eb90180d5951ab2e..39b547f5791192300063daadfa20eaf38200023d 100644 (file)
@@ -153,14 +153,6 @@ public:
         return blkSize;
     }
 
-    /**
-     * Search for the address in the cache.
-     * @param asid The address space ID.
-     * @param addr The address to find.
-     * @return True if the address is in the cache.
-     */
-    bool probe(Addr addr) const;
-
     /**
      * Invalidate the given block.
      * @param blk The block to invalidate.