环境变量
export CC=/home/zhuguoliang/softwareinstall/gcc-4.7.4/bin/gcc
export CXX=/home/zhuguoliang/softwareinstall/gcc-4.7.4/bin/g++
export PYTHONPATH=/home/zhuguoliang/softwareinstall/python-2.7.9/
export LD_LIBRARY_PATH=/home/zhuguoliang/softwareinstall/gcc-4.7.4/lib:/home/zhuguoliang/softwareinstall/gcc-4.7.4/lib64/:/home/zhuguoliang/softwareinstall/lib/
export SWIG=/home/zhuguoliang/softwareinstall/bin/swig
export LD_LIBRARY_PATH=/home/zhuguoliang/softwareinstall/lib/:/home/zhuguoliang/softwareinstall/gcc-4.7.4/lib64/
编译
python2.7 /usr/bin/scons build/X86/gem5.opt -j31
vim configs/common/SysPaths.py
修改为path = [ '/dist/m5/system', '/home/zhuguoliang/gem5-stable/x86Dist' ]
./configs/common/Benchmarks.py: return env.get('LINUX_IMAGE',disk('x86root.img'))
如实修改Benchmarks.py, 把return env.get('LINUX_IMAGE',disk('x86root.img'))改成
return env.get('LINUX_IMAGE', disk('linux-x86.img'))