9b1e2db811
cpu/base_cpu.cc: cpu/base_cpu.hh: Convert the CPU stuff to use a params struct cpu/memtest/memtest.cc: The memory tester is really not a cpu, so don't derive from BaseCPU since it just makes things a pain in the butt. Keep track of max loads in the memtest class now that the base class doesn't do it for us. Don't have any default parameters. cpu/memtest/memtest.hh: The memory tester is really not a cpu, so don't derive from BaseCPU since it just makes things a pain in the butt. Keep track of max loads in the memtest class now that the base class doesn't do it for us. cpu/simple_cpu/simple_cpu.cc: Convert to use a params struct. remove default parameters cpu/simple_cpu/simple_cpu.hh: convert to use a params struct cpu/trace/opt_cpu.cc: cpu/trace/opt_cpu.hh: cpu/trace/trace_cpu.cc: cpu/trace/trace_cpu.hh: this isn't really a cpu. don't derive from BaseCPU objects/MemTest.mpy: we only need one max_loads parameter sim/main.cc: Don't check for the number of CPUs since we may be doing something else going on. If we don't have anything to simulate, the simulator will exit anyway. --HG-- extra : convert_revision : 2195a34a9ec90b5414324054ceb3bab643540dd5
18 lines
891 B
Text
18 lines
891 B
Text
simobj MemTest(SimObject):
|
|
type = 'MemTest'
|
|
cache = Param.BaseCache("L1 cache")
|
|
check_mem = Param.FunctionalMemory("check memory")
|
|
main_mem = Param.FunctionalMemory("hierarchical memory")
|
|
max_loads = Param.Counter("number of loads to execute")
|
|
memory_size = Param.Int(65536, "memory size")
|
|
percent_copies = Param.Percent(0, "target copy percentage")
|
|
percent_dest_unaligned = Param.Percent(50,
|
|
"percent of copy dest address that are unaligned")
|
|
percent_reads = Param.Percent(65, "target read percentage")
|
|
percent_source_unaligned = Param.Percent(50,
|
|
"percent of copy source address that are unaligned")
|
|
percent_uncacheable = Param.Percent(10,
|
|
"target uncacheable percentage")
|
|
progress_interval = Param.Counter(1000000,
|
|
"progress report interval (in accesses)")
|
|
trace_addr = Param.Addr(0, "address to trace")
|