diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-12-18 23:07:52 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-12-18 23:07:52 -0800 |
commit | 9d7db8bb2bbd5ae6a3653385c896b19da4d33f69 (patch) | |
tree | f30120e63501f6ac759e3d828d04a0b0993538fc /src/mem/cache/cache.hh | |
parent | f655932700dbe8d39ee618a2679cb43d2c41eaa1 (diff) | |
download | gem5-9d7db8bb2bbd5ae6a3653385c896b19da4d33f69.tar.xz |
Streamline Cache/Tags interface: get rid of redundant functions,
don't regenerate address from block in cache so that tags can
turn around and use address to look up block again.
--HG--
extra : convert_revision : 171018aa6e331d98399c4e5ef24e173c95eaca28
Diffstat (limited to 'src/mem/cache/cache.hh')
-rw-r--r-- | src/mem/cache/cache.hh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mem/cache/cache.hh b/src/mem/cache/cache.hh index ba424d128..26dab2179 100644 --- a/src/mem/cache/cache.hh +++ b/src/mem/cache/cache.hh @@ -279,21 +279,6 @@ class Cache : public BaseCache */ PacketPtr writebackBlk(BlkType *blk); - BlkType* findBlock(Addr addr) - { - return tags->findBlock(addr); - } - - BlkType* findBlock(PacketPtr &pkt) - { - return tags->findBlock(pkt->getAddr()); - } - - void invalidateBlk(CacheBlk *blk) - { - tags->invalidateBlk(tags->regenerateBlkAddr(blk->tag, blk->set)); - } - public: class Params @@ -399,14 +384,6 @@ class Cache : public BaseCache void snoopResponse(PacketPtr &pkt); /** - * Invalidates the block containing address if found. - * @param addr The address to look for. - * @param asid The address space ID of the address. - * @todo Is this function necessary? - */ - void invalidateBlk(Addr addr); - - /** * Squash all requests associated with specified thread. * intended for use by I-cache. * @param threadNum The thread to squash. |