我在 SE 模式下玩,使用脚本“GEM5_PATH/configs/learning_gem5/part2/simple_memobj.py”,我在其中更改了频率:
# Set the clock fequency of the system (and all of its children)
system.clk_domain = SrcClockDomain()
system.clk_domain.clock = **'1GHz'**
和
# Set the clock fequency of the system (and all of its children)
system.clk_domain = SrcClockDomain()
system.clk_domain.clock = **'2GHz'**
我从“stats.txt”中读取了关于 sim_seconds 的第一行,1GHz 需要 0.000508 秒,而 2GHz 需要 0.000459 秒,这并没有减半,因为整个系统频率增加了一倍。关于原因的任何提示?是否需要任何其他配置才能根据需要进行配置?
命令是:build/X86/gem5.opt configs/learning_gem5/part2/simple_memobj.py
基准是:'tests/test-progs/hello/bin/x86/linux/hello'
非常感谢。