mem: Dynamically determine page bytes in memory components
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 16 Oct 2014 09:49:43 +0000 (05:49 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 16 Oct 2014 09:49:43 +0000 (05:49 -0400)
commitdf973abef3a70074971375cfe52c46f53528c00e
tree7c10603edb5c66631288cb0f9fa334df4cf3d8a9
parent37908d62a4b45962a6e6f5993027b6b9bafa296d
mem: Dynamically determine page bytes in memory components

This patch takes a step towards an ISA-agnostic memory
system by enabling the components to establish the page size after
instantiation. The swap operation in the memory is now also allowing
any granularity to avoid depending on the IntReg of the ISA.
16 files changed:
src/mem/abstract_mem.cc
src/mem/abstract_mem.hh
src/mem/cache/prefetch/Prefetcher.py
src/mem/cache/prefetch/base.cc
src/mem/cache/prefetch/base.hh
src/mem/cache/tags/base.cc
src/mem/dram_ctrl.cc
src/mem/dramsim2.cc
src/mem/ruby/common/Address.cc
src/mem/ruby/common/Address.hh
src/mem/ruby/structures/Prefetcher.cc
src/mem/ruby/structures/Prefetcher.hh
src/mem/ruby/structures/RubyPrefetcher.py
src/mem/simple_mem.cc
src/sim/system.cc
src/sim/system.hh