运行
1、 首先编译gem5.opt
~/gem5-stable $ scons ./build/ALPHA/gem5.opt
可以通过 $GEM5/m5out/system.terminal查看启动linux内核的monitor进程。
2、运行模拟的linux系统
./build/ALPHA/gem5.opt ./configs/example/fs.py
将看到如下界面
gem5 Simulator System.
http://gem5.orggem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Jul 13 2013 15:50:46
gem5 started Jul 13 2013 15:53:18
gem5 executing on jsi-desktop
command line: ./build/ALPHA/gem5.opt ./configs/example/fs.py
Global frequency set at 1000000000000 ticks per second
info: kernel located at: /home/wyj2/gem5-stable/dist/binaries/vmlinux
Listening for system connection on port 3456
0: system.tsunami.io.rtc:Real-time clock set to Thu Jan 100:00:00 2009
warn: CoherentBus system.membus has no snooping ports attached!
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
**** REAL SIMULATION ****
info: Entering event queue @ 0. Starting simulation...
warn: Prefetch instructions in Alpha do not do anything
warn: Prefetch instructions in Alpha do not do anything