On Mon, 12 Nov 2012, Roberto Rodríguez-Rodríguez wrote:
Hello,
I am a new user of the gem5 simulator, I need to add several
replacementpolicies (NRU, DRRIP,
PeLIFO, SHiP, CLP among others), I would like to share this changes with
you and them will be part of the simulator. I have read the wiki and
mailing list but I have not found an example. I think that the default
policy is null.
What is meant by the policy being 'null'?
From the running line:
build/X86/gem5.opt configs/example/se.py --clock=2.8GHz --caches
--l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=256kB --l3_size=8192kB
-c tests/test-progs/hello/bin/x86/linux/hello
How can I establish the replacement policy?
How can I add a new replacement policy?
For the caches in the classic memory system, take a look at files in
src/mem/cache. I think builder.cc is the file that is used for building
caches with a specified policy.
For the ruby memory system, take a look at files in src/mem/ruby/system
directory. You should be able to write the policies you want on lines of
LRUPolicy.hh file in that directory.
--
Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users