最新版的gem5(v23.1.0.0)移除了se.py,运行se模式有些变化。通过修改测试文件,实现了se模式下运行。方法如下:
1. 修改测试文件为自己的测试文件
diff --git a/configs/learning_gem5/part1/simple-riscv.py b/configs/learning_gem5/part1/simple-riscv.py
index 6e296d5fc0..e5da298c3b 100644
--- a/configs/learning_gem5/part1/simple-riscv.py
+++ b/configs/learning_gem5/part1/simple-riscv.py
@@ -60,7 +60,7 @@ thispath = os.path.dirname(os.path.realpath(__file__))
binary = os.path.join(
thispath,
"../../../",
- "tests/test-progs/hello/bin/riscv/linux/hello",
+ "1",
)
2. 运行gem5
./build/RISCV/gem5.opt --debug-flags=ExecAll ./configs/learning_gem5/part1/simple-riscv.py