天天看點

GEM5安裝

安裝環境:Ubuntu 16.04lts

安裝庫檔案

sudo apt-get install mercurial scons swig g++ protobuf-compiler libprotobuf-dev python-dev libgoogle-perftools-dev m4
           

下載下傳GEM5

gem5下載下傳指南

編譯gem5架構

zzz@zzz:~/gem5$ scons -j  build/X86/gem5.opt
           

ps:我的機子有28個核。。。

測試結果

指令

zzz@zzz:~/gem5$ ./build/X86/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/x86/linux/hello
           

結果

gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Nov   ::
gem5 started Nov   ::
gem5 executing on zzz, pid 44126
command line: ./build/X86/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/x86/linux/hello

/home/zzz/gem5/configs/common/CacheConfig.py:: SyntaxWarning: import * only allowed at module level
  def config_cache(options, system):
Global frequency set at  ticks per second
warn: DRAM device capacity ( Mbytes) does not match the address range assigned ( Mbytes)
: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
warn: ClockedObject: More than one power state change request encountered within the same simulation tick
**** REAL SIMULATION ****
info: Entering event queue @   Starting simulation...
Hello world!
Exiting @ tick  because target called exit()
           

GEM5 安裝成功