XiangShan icon indicating copy to clipboard operation
XiangShan copied to clipboard

How to modify the reset address and stack address space of coremark and dhrystone in nexus-am/apps?

Open HUA-FENG1995 opened this issue 1 year ago • 6 comments

请教下如何修改nexus-am/apps /中的coremark和dhrystone用例的起始地址和栈的使用范围?感谢

[Translation] How to modify the reset address and stack address space of coremark and dhrystone in nexus-am/apps? Thanks

HUA-FENG1995 avatar Jun 21 '23 01:06 HUA-FENG1995

可以阅读并修改 ./am/src/$ARCH/ldscript 里面的链接脚本

[Translation] You may refer to and modify the ld script in ./am/src/$ARCH/ldscript

wakafa1 avatar Jun 27 '23 05:06 wakafa1

可以阅读并修改 ./am/src/$ARCH/ldscript 里面的链接脚本

[Translation] You may refer to and modify the ld script in ./am/src/$ARCH/ldscript

好的谢谢。 还有请问下使用 gdb 调试,gdb 连接成功会报什么? 我报了 Truncated register 37 in remote 'g' packet,是我使用问题吗?

[Translation] Okay, thanks. Besides, what would it display if gdb successfully connected when using gdb to debug? It throw Truncated register 37 in remote 'g' packet. It that my problem?

HUA-FENG1995 avatar Jun 29 '23 06:06 HUA-FENG1995

请详细说明调试场景(包括但不限于开发操作系统、AM 的目标指令集和目标架构、AM 程序运行平台)

[Translation] Please describe in detail the debugging scenarios (including but not limited to the development operating system, the target instruction set and architecture of AM, and the platform on which the AM program runs)

wakafa1 avatar Jun 29 '23 06:06 wakafa1

请详细说明调试场景(包括但不限于开发操作系统、AM 的目标指令集和目标架构、AM 程序运行平台)

[Translation] Please describe in detail the debugging scenarios (including but not limited to the development operating system, the target instruction set and architecture of AM, and the platform on which the AM program runs)

主要想在 fpga k7 上跑 coremark 和 dhrystone,但是没有结果,在想是不是需要改内存地址。 操作系统是 Windows , 目标指令集 rv64gcbk, 架构应该是 nanhu。

[Translation] I mainly want to run coremark and dhrystone on FPGA K7, but there is no result, and I wonder if I need to change the memory address. The operating system is Windows, the target instruction set rv64gcbk, and the architecture should be nanhu.

HUA-FENG1995 avatar Jun 29 '23 07:06 HUA-FENG1995

建议先在仿真环境下调通再上 FPGA

[Translation] It is recommended to test in the simulation environment before on FPGA

wakafa1 avatar Jun 29 '23 07:06 wakafa1

建议先在仿真环境下调通再上 FPGA

[Translation] It is recommended to test in the simulation environment before on FPGA

好的,感谢。是按上面的方法调通吗?

[Translation] Okay, thanks. Is it tuned according to the above method?

HUA-FENG1995 avatar Jun 29 '23 07:06 HUA-FENG1995