美文网首页
GEM5+NVMain混合编译

GEM5+NVMain混合编译

作者: 柠檬红茶加点糖 | 来源:发表于2017-10-23 16:37 被阅读0次

    资料:

    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

    相关文章

      网友评论

          本文标题:GEM5+NVMain混合编译

          本文链接:https://www.haomeiwen.com/subject/wxeauxtx.html