Somebody please tell me how to add a new replacement policy in to the
cache.I tried to enter LIP policy in
/home/ccf/gem5/src/mem/cache/tags/lip.cc and had modified BaseCache.py and
cache.cc to use LIP
/home/ccf/gem5/src/mem/cache/base.cc
/home/ccf/gem5/src/mem/cache/BaseCache.py
/home/ccf/gem5/src/mem/cache/cache.cc
/home/ccf/gem5/src/mem/cache/tags/Tags.py
/home/ccf/gem5/configs/common/Caches.py

But even then i get this error


command line: build/ARM/gem5.opt --stats-file=armhello.txt
configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hello
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/ccf/gem5/src/python/m5/main.py", line 388, in main
    exec filecode in scope
  File "configs/example/se.py", line 60, in <module>
    import CacheConfig
  File "/home/ccf/gem5_latest/configs/common/CacheConfig.py", line 46, in
<module>
    from Caches import *
  File "/home/ccf/gem5_latest/configs/common/Caches.py", line 49, in
<module>
    class L1Cache(BaseCache):
  File "/home/ccf/gem5_latest/configs/common/Caches.py", line 58, in L1Cache
    tags = LIP()
NameError: name 'LIP' is not defined


Please tell me what is wrong with what i have done.KIndly expect a reply.
Thanks in advance
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to