首页 > 代码库 > gem5-gpu 全系统模拟更改disk和Linux kernel image

gem5-gpu 全系统模拟更改disk和Linux kernel image

修改gem5/configs/common/SysConfig.py,后面的路径为binaries和disks的目录:

path = [ /dist/m5/system, /home/chen/gem5-gpu/system ]

修改gem5/configs/common/Benchmarks.py,x86root-parsec.img为disks目录下的磁盘文件:

elif buildEnv[TARGET_ISA] == x86:
            return env.get(LINUX_IMAGE, disk(x86root-parsec.img))

修改gem5/configs/common/FSConfig.py,其中定义了 makeLinuxX86System() 方法:

 self.kernel = binary(x86_64-vmlinux-2.6.28.4-smp)

 

gem5-gpu 全系统模拟更改disk和Linux kernel image