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

fix the CONFIG_BBL_OFFSET_WITH_CPT parameter in the xs-cpt configuration #453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zybzzz
Copy link

@zybzzz zybzzz commented Aug 15, 2024

Changed the CONFIG_BBL_OFFSET_WITH_CPT parameter in the checkpoint configuration to fix a bug introduced by the incorrect setting of this parameter when a user tries to set up a checkpoint with NEMU according to the documentation, causing NEMU to fail to start the bbl, which in turn prevents normal sampling.


更改checkpoint配置中CONFIG_BBL_OFFSET_WITH_CPT参数,以修复其带来的bug。在用户按照文档尝试使用NEMU设置检查点时,这个参数设置的错误会导致NEMU无法启动bbl,进而导致无法进行正常的采样。

我在按照文档一步一步进行香山全系统仿真环境的搭建,但是按照文档的步骤来还是会导致采样的错误。后来通过研究bbl-out.txt发现,NEMU一直将bbl加载到0x800a0000的地址,而不是按照文档一步一步来所期望的0x80100000地址,通过检查发现,原来是 xs-cpt 的 config 没有随着文档同步更新导致了这个问题,这会 make riscv64-xs-cpt_defconfig直接产生错误的参数,让新手上手的时候难以修复。我在改动了这个参数之后就能够按照文档说明正确生成采样点并恢复采样点。

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

Successfully merging this pull request may close these issues.

1 participant