Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEMU恢复检查点报错 #821

Open
KKK10001 opened this issue Mar 3, 2025 · 0 comments
Open

NEMU恢复检查点报错 #821

KKK10001 opened this issue Mar 3, 2025 · 0 comments

Comments

@KKK10001
Copy link

KKK10001 commented Mar 3, 2025

NEMU master编译生成的./build/riscv64-nemu-interpreter不支持--restore入参

根据 https://docs.xiangshan.cc/zh-cn/latest/tools/simpoint/ 的推荐切换到NEMU gcpt_new_mem_layout分支之后,进行常规配置如下:
make riscv64-xs-cpt_defconfig
make menuconfig
若采用上述缺省的配置,在编译NEMU时会报链接优化的错

Image

重新make menuconfig,取消勾选链接优化的选项,重新编译,可以正常生成riscv64-nemu-interpreter

……持续进行基于OpenSBI的构建流程,成功生成了19MB大小的gcpt.bin,并且将其复制到$NEMU_HOME/resource/gcpt_restore/build目录

随后,进行NEMU-Profiling,source的脚本如下:

Image

最终,发生了如下assertion:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant