参考:Questions about Cache Warmup Option in Gem5
说明:当使用如下命令执行时:
$GEM5/build/X86/gem5.opt -d Output/m5out_test $GEM5/configs/example/se.py --cpu-type \"detailed\" --caches --l2cache -n 1 --bench "omnetpp" -F 2000000000 --standard-switch=100000000 --warmup-insts 100000000 -I 100000000 --l2_size='1MB' --l2_assoc=4
–warmup-insts表示将运行这么多指令后,统计数据将reset,即实际上你的模拟是从warmup后开始的,所有统计数据都是从这里开始计算的。
-I即–maxinsts表示每个核最大的运行指令数,如果设置–maxinsts=100, cpu=4, 那么stats.txt中的sim_insts的值为小于等于400。