memtest.py 以这种方式工作正常:
build/X86/gem5.opt configs/example/memtest.py
但是当我给出参数时,它没有给出这样的选项错误:
build/X86/gem5.opt configs/example/memtest.py --cpu-type=TimingSimpleCPU
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Jul 27 2018 14:19:35
gem5 started Sep 17 2018 15:31:03
gem5 executing on 2030044470, pid 5045
command line: build/X86/gem5.opt configs/example/memtest.py --cpu-type=TimingSimpleCPU
Usage: memtest.py [options]
memtest.py: error: no such option: --cpu-type
另一方面 se.py 和 fs.py 可以很好地使用附加参数:
build/X86/gem5.opt configs/example/se.py -c /home/prakhar/gem5/tests/test-progs/hello/bin/x86/linux/hello --cpu-type=TimingSimpleCPU
有什么方法可以使用 --cpu-type 和 --mem-type 参数运行 memtest.py 吗?