starter_fs.py:错误:无法识别的参数:--nvmain-config

问题描述

我正在运行修补了 nvmain 的 gem5。但是当我要运行时,会出现错误 unrecognized element --nvmain-config。我已经看到所有其他文章都在使用这个参数并且他们的程序也运行。我还将脚本从 starter_fs.py 更改为 fs.py 但仍然不好。请帮助我如何运行它。

enter image description here

I have added the picture for better understanding .
usage: starter_fs.py [-h] [--dtb DTB] [--kernel KERNEL]
                     [--disk-image disK_IMAGE] [--script SCRIPT]
                     [--cpu {hpi,atomic,minor}] [--cpu-freq cpu_FREQ]
                     [--num-cores NUM_CORES]
                     [--mem-type {nvmainMemory,HBM_1000_4H_1x128,DRAMCtrl,DDR3_2133_8x8,HBM_1000_4H_1x64,GDDR5_4000_2x32,HMC_2500_1x32,LPDDR3_1600_1x32,WideIO_200_1x128,DDR4_2400_8x8,DDR3_1600_8x8,DDR4_2400_4x16,DDR4_2400_16x4,SimpleMemory,LPDDR2_S4_1066_1x32}]
                     [--mem-channels MEM_CHANNELS] [--mem-ranks MEM_RANKS]
                     [--mem-size MEM_SIZE] [--checkpoint] [--restore RESTORE]
starter_fs.py: error: unrecognized arguments: --nvmain-config=./Configs/PCM_ISSCC_2012_4GB.config

解决方法

确保编译 gem5 时将 EXTRAS 字段设置为 NVMain 的路径。部分 NVMain 代码在当前的 gem5 提交中已经过时,但我在 README 中为一个课程项目编写了一个小修改到存储库,并提供了完整的设置指南。你可以克隆它here