fix the CONFIG_BBL_OFFSET_WITH_CPT parameter in the xs-cpt configuration #453
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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直接产生错误的参数,让新手上手的时候难以修复。我在改动了这个参数之后就能够按照文档说明正确生成采样点并恢复采样点。