• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2025, Vol. 47 ›› Issue (1): 45-55.

• High Performance Computing • Previous Articles     Next Articles

OpenOCD debugging optimization for isomorphic asymmetric multi-core architecture

TANG Zhu1,CHEN Baohai1,WANG Jingyu2,ZHU Qi2   

  1. (1.College of Computer Science and Technology,National University of Defense Technology,Changsha 410073;
    2.Jiangnan Institute of Computing Technology,Wuxi 214083,China)
  • Received:2023-07-08 Revised:2023-09-18 Online:2025-01-25 Published:2025-01-18

Abstract: 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.

Key words: asymmetric multi-processing, multi-core debugging, OpenOCD, single port