GEM5+NVMain混合編譯

資料:

http://blog.csdn.net/qqq_11101/article/details/68945946



操作:

1、安裝gem5

參考我的gem5使用+se測試的文章

2、配置hgrc文件

vim ~/.hgrc

講下面的信息復制到hgrc的文件夾中:修改(username,style,from)

[ui]

# Set the username you will commit code with

username=Your Name <your@email.address>

ssh = ssh -C

# Always use git diffs since they contain permission changes and rename info

[defaults]

qrefresh = --git

email = --git

diff = --git

[extensions]

# These are various extensions we find useful

# Mercurial Queues -- allows managing of changes as a series of patches

hgext.mq =

# PatchBomb -- send a series of changesets as e-mailed patches

hgext.patchbomb =

# External Diff tool (e.g. kdiff3, meld, vimdiff, etc)

hgext.extdiff =

# Fetch allows for a pull/update operation to be done with one command and automatically commits a merge changeset

hgext.fetch =

# Path to the style file for the M5 repository

# This file enforces our coding style requirements

style = /home/用戶名/gem5/util/style.py

[email]

method = smtp

from = Your Name <your@email.address>

[smtp]

host = your.smtp.server.here

3、下載nvmain,放置在gem5目錄下,nvmain見我的nvmain使用文章

4、安裝NVMain補丁

(1)

hg qinit

出現下面信息沒有關系

*** failed to import extension style from /home/jabingu/gem5/util/style.py: No module named file_types

abort: patch queue directory already exists

(2) Import the NVMain patch:

hg update 11688?

hg qimport -f ./nvmain/patches/gem5/nvmain2-gem5-11688+

(3) Apply the patch:

hg qpush

5、編譯

scons EXTRAS=nvmain ./build/X86/gem5.opt

6、測試

(1)se測試

./build/X86/gem5.opt ./configs/example/se.py -c ./tests/test-progs/hello/bin/x86/linux/hello

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容