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

出現(xiàn)下面信息沒有關系

*** 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

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容