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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容