What does the line where you set that property look like? I suspect it isn't happy about the value you're assigning to it.

Gabe

Quoting Tripti Warrier <[email protected]>:

Thanks Steve for the prompt reply. Yes I have added the new param in
BaseCache.py.
I have made the following changes in the following files:
1.BaseCache.py:

   - added  - class class Replace(Enum): vals = ['no','lru', *'fa_lru']*
   - *added - replacement_policy = Param.Replace('lru', "type of
   replacement_policy")*

*2.builder.cc :
*

   - added - #include "enums/Replace.hh"
   - modified the the BUILD_CACHE based on replacment_policy

#define BUILD_CACHES do {                \
        if (replacement_policy == Enums::fa_lru)         \
              BUILD_FALRU_CACHE;                \
        else (replacement_policy == Enums::lru)    \
              BUILD_LRU_CACHE;            \
         } while (0)                    \

Am I missing some other modifications ?

--
Thanks & Regards,
Tripti



_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to