From ac515d7a9b131ffc9e128bd209fcddb2f383808b Mon Sep 17 00:00:00 2001 From: Prakash Ramrakhyani Date: Thu, 27 Jun 2013 05:49:50 -0400 Subject: mem: Reorganize cache tags and make them a SimObject This patch reorganizes the cache tags to allow more flexibility to implement new replacement policies. The base tags class is now a clocked object so that derived classes can use a clock if they need one. Also having deriving from SimObject allows specialized Tag classes to be swapped in/out in .py files. The cache set is now templatized to allow it to contain customized cache blocks with additional informaiton. This involved moving code to the .hh file and removing cacheset.cc. The statistics belonging to the cache tags are now including ".tags" in their name. Hence, the stats need an update to reflect the change in naming. --- src/mem/cache/tags/SConscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mem/cache/tags/SConscript') diff --git a/src/mem/cache/tags/SConscript b/src/mem/cache/tags/SConscript index 5b30f55d6..de835c1d0 100644 --- a/src/mem/cache/tags/SConscript +++ b/src/mem/cache/tags/SConscript @@ -33,7 +33,8 @@ Import('*') if env['TARGET_ISA'] == 'no': Return() +SimObject('Tags.py') + Source('base.cc') Source('fa_lru.cc') Source('lru.cc') -Source('cacheset.cc') -- cgit v1.2.3