How to modify a file under src/python and run it without rebuilding in gem5?

不打扰是莪最后的温柔 提交于 2020-04-30 09:27:56

问题


If you modify a file under src/python, then a rebuild is necessary, unlike modifications to configs/

That makes making changes under that directory very painful, since even the clean rebuild takes several seconds.

Is there a way to avoid the rebuild?


回答1:


M5_OVERRIDE_PY_SOURCE=true

If you export that environment variable for the run, and gem5 uses the Python source code directly.

This likely exists because by default, gem5 packs up Python object files inside the gem5.opt binary so allows users to run it without changing their PYTHON_PATH.

Tested on: https://gem5.googlesource.com/public/gem5/+/91295ff980c17efb3ad013b9636017b58e49c071



来源:https://stackoverflow.com/questions/52312070/how-to-modify-a-file-under-src-python-and-run-it-without-rebuilding-in-gem5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!