入职大学半年了,下学期要教计算机体系结构这门本科课程,熟悉熟悉架构业界常用的Gem5模拟器吧。
【STEPS】
1. 在Linux系统(e.g., Ubuntu 18.04)下安装Anaconda
2. 创建环境[any env name you want]并启用该环境
conda create -name archstudy
conda activate archstudy
3. 安装Gem5需要的工具
sudo apt install build-essential git m4 scons zlib1g zlib1g-dev
sudo apt install libprotobuf-dev protobuf-compiler
#optional
sudo apt install libprotoc-dev libgoogle-perftools-dev python-dev python
#optional
4. 下载并编译Gem5
git clone https://gem5.googlesource.com/public/gem5
scons build/X86/gem5.opt -j9
# 9 can be replaced with the number of your processors (cores)
5. 运行一个简单的仿真
build/X86/gem5.opt configs/tutorial/part1/simple.py
【Troubleshooting】
我在执行Step 5的时候,出现了