On Wed, 28 Nov 2012, Roberto Rodríguez-Rodríguez wrote:
Hello everyone,
I have a doubt, in the file MOESI_CMP_directory-L1cache.sm the LRU queue
state, I think, is never updated.
The actualization of the LRU queue is done by the "touch" method of the
replacement policy class (src/mem/ruby/system/PseudoLRUPolicy.hh). This
method is called by the methods of the cache class (
src/mem/ruby/system/Cache.cc): "tryCacheAccess", "testCacheAccess",
"allocate" and "setMRU".
Nevertheless, only the "allocate" method is called when a new block is
taken to the cache, but in MOESI_CMP_directory-*L2*cache.sm the "setMRU"
method is used for updating the LRU queue state.
Is the LRU queue state updated in the cache L1?
Those methods from the CacheMemory class are public. Why not check if they
are being called from some file different from CacheMemory.cc?
--
Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users