基于QEMU仿真的GIC中断处理技术研究
作者:
作者单位:

作者简介:

王宁,男,本科,高级工程师。主要研究方向:机载计算机软件。E-mail:wwnn1_class@sina.com

通讯作者:

王宁,E-mail:wwnn1_class@sina.com

中图分类号:

TP391.9

基金项目:


Research on GIC interrupt processing technology based on QEMU simulation
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    QEMU6.1.0版本下,基于ARM体系架构开发的VIRT模拟器,在运行天脉操作系统时无法正确触发GIC中断控制器产生中断的问题,分析了VIRT模拟器对于GIC中断控制器的初始化以及触发操作,同时查阅了GIC中断控制器的相关说明文档,进一步分析天脉操作系统中有关中断控制器的初始化代码,找出了VIRT模拟器与天脉操作系统在GIC中断控制器初始化和使用方式上的具体差异。通过修改VIRT模拟器中与GIC中断控制器相关的代码完成对天脉操作系统的适应。在不改动天脉操作系统代码的情况下,顺利将VIRT模拟器模拟的GIC中断控制器驱动运行成功。

    Abstract:

    GIC is Generic Interrupt Controller of ARM architecture. VIRT emulator in QEMU (version 6.1.0) was developed for hardware emulation of ARM architecture. However, the TianMai operating system developed for ARM architecture cannot drive the emulated GIC correctly when running on VIRT emulator, while the exact same operating system can drive GIC correctly running on real hardware environment. By analyzing the emulation source code about GIC in VIRT emulator, the specification document of GIC, and the driver of GIC in TianMai operating system, the differences about manner of GIC operation between TianMai operating system and VIRT emulator were found. To eliminate these differences, source code about GIC emulating in VIRT emulator was modified. Finally, TianMai operating system can drive the emulated GIC correctly when running on newly created VIRT emulator, without making any change in TianMai operating system itself.

    参考文献
    相似文献
    引证文献
引用本文

王宁,王珍珍,崔西宁.基于QEMU仿真的GIC中断处理技术研究[J].民用飞机设计与研 究,2023(4):141-145WANG Ning, WANG Zhenzhen, CUI Xining. Research on GIC interrupt processing technology based on QEMU simulation[J]. Civil Aircraft Design and Research,2023,(4):141-145. ( in Chinese)

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2024-01-17
  • 出版日期:

微信公众号二维码

手机版网站二维码

我要投稿 投稿指南 联系我们 二维码
TOP