面向同构非对称多核的OpenOCD调试功能优化研究-学术咨询网
计算机工程与科学

计算机工程与科学杂志

  • 北大期刊
  • CSCD
  • 统计源期刊
  • 知网收录
  • 维普收录
  • 万方收录
基本信息
  • 主管单位:

    国防科技大学

  • 主办单位:

    国防科技大学计算机学院

  • 国际刊号:

    1007-130X

  • 国内刊号:

    43-1258/TP

  • 创刊时间:

    1973

  • 期刊类别:

    计算机期刊

  • 出版社:

    计算机工程与科学

  • 主编:

    王志英

  • 发行周期:

    月刊

出版信息
  • 审稿周期:

    1-3个月

  • 被引次数:

    19216

  • 邮发代号:

    42-153

  • 全年定价:

    ¥796.00

  • 他引率:

    0.9643

  • 邮编:

    410073

期刊详情 投稿咨询 关注公众号

面向同构非对称多核的OpenOCD调试功能优化研究

作者:唐竹,陈宝海,王敬宇,朱琪
关键词:
摘要:多核架构是提升处理器性能的重要手段,其在网络处理领域的应用也日渐广泛,因此,需要配套高效的多核调试工具才能提升多核网络处理器的开发效率。由于处理网络任务的多核之
多核架构是提升处理器性能的重要手段,其在网络处理领域的应用也日渐广泛,因此,需要配套高效的多核调试工具才能提升多核网络处理器的开发效率。由于处理网络任务的多核之间并不存在很强的关联性,业务核更多使用运行到结束(RTC)而非流水线(Pipeline)的处理模式,多个业务核之间并不需要复杂的缓存一致性逻辑,因此采用同构的非对称多处理AMP架构,可有效降低芯片复杂度和研发成本。目前,非对称多核调试需要同时启动多个GDB,不仅调试不便,同时还会导致较大的资源开销。针对同构非对称多核场景下OpenOCD多端口调试方案进行优化,以单个GDB端口实现针对多个非对称核的调试功能,同时支持对称多处理核簇与非对称多核的混合场景。最后,基于RISC-V软硬件平台搭建了非对称多核调试环境,对线程操作、单步执行、单步跳过、继续运行、查看堆栈和断点设置等GDB调试命令进行测试,验证了单端口OpenOCD进行非对称多核调试的可行性和有效性。


Multi-core architecture is a crucial means of enhancing processor performance, and its application in network processing is becoming increasingly widespread. Consequently, efficient multi-core debugging tools are also required to improve the development efficiency of multi-core network processors. Since there is not a strong correlation among multi-core processing network tasks, the service cores more often adopt the RTC processing mode rather than the Pipeline mode, and the complex cache coherence logic is not necessary among multiple service cores.  Therefore, by adopting a homogeneous AMP architecture, chip complexity and research and development costs can be effectively reduced. Currently, asymmetric multi-core debugging requires the simultaneous launching of multiple GDBs, which not only complicates the debugging process but also results in significant resource consumption. This paper optimizes the OpenOCD multi-port debugging solution for homogeneous asymmetric multi-core scenarios, enabling debugging of multiple asymmetric cores through a single GDB port while also supporting mixed scenarios of symmetric multi-processing core clusters and asymmetric multi-core. Finally, an asymmetric multi-core debugging environment is built based on the RISC-V hardware and software platform, and GDB debugging commands, such as thread operations, step execution, step over, continue running, stack viewing, and breakpoint setting are tested, verifying the feasibility and effectiveness of single-port OpenOCD for asymmetric multi-core debugging.


相关文章
[1]扈啸 李杰 陈莉丽 陈书明. 多核处理器YHFT—QDSP的调试系统[J]. J4, 2008, 30(9): 116-118.
注:因版权方要求,不能公开全文,如需全文,请咨询杂志社