GEM5将相关器分支预测器集成到gem5周期精确架构模拟器中
在GEM5中将相关器分支预测器集成到gem5周期精确架构模拟器中,流程如下:
-
在SConscript中添加源文件。
-
在bpred_unit.cc中为预测器创建一个新对象。
-
将参数添加到BranchPredictor.py。
-
修改O3_ARM_v7a.py中的predType。
-
构建系统:
scons -j8 build/ARM/gem5.debug
。 -
为se模式编译程序:
arm-linux-gnueabi-gcc -DUNIX -o sort.c -static
。 -
在se模式下运行系统:
./build/ARM/gem5.debug --debug-file=trace.out --debug-flags=Fetch,Branch configs/example/se.py -c ./tests/test-progs /hello/bin/arm/linux/sort
。
下载地址
用户评论