摘要: 由于龙芯采用无内部互锁流水级的微处理器(MIPS)指令集且主要支持Linux操作系统,但在该平台上的应用软件相对匮乏,且很多传统Windows软件无法在该平台上直接运行。针对该问题,利用Wine仿真Windows系统调用,结合QEMU用户模式实现x86指令向MIPS指令动态翻译的方法,将运行在Intel+Windows上的应用软件向龙芯+Linux平台二进制移植。实验结果表明,相比于Bochs+Wine方案和QEMU全系统仿真方案,该方法虚拟CPU运算速率为Bochs+Wine方案的8.04倍和QEMU全系统仿真方案的1.44倍,I/O读写速率为Bochs+Wine方案的2.44倍和QEMU全系统仿真方案的7.38倍,运行效率明显提高。
关键词:
QEMU虚拟机,
Wine仿真环境,
龙芯,
指令集翻译,
二进制移植
Abstract: Since Loongson adopts Microprocessor without Interlocked Piped Stages(MIPS) instruction set and main supports the Linux operating system,application software on Loongson is still relatively scarce.Many traditional Windows software cannot run directly on the platform.To solve this problem,this paper proposes a method to simulate Windows system call by utilizing Wine emulator and uses QEMU user mode realize the dynamic translation from x86 instructions to MIPS instructions.It achieves software binary migration from Intel+Windows architecture to Loongson+Linux architecture.Experimental results show that this scheme has higher efficiency compared with Bochs+Wine and QEMU full system schemes.The rate of CPU calculation with this method is 8.04 times of Bochs+Wine scheme and 1.44 times of QEMU full system scheme.I/O calculation rate with this scheme is 2.44 times of Bochs+Wine scheme and 7.38 times of QEMU full system scheme.
Key words:
QEMU virtual machine,
Wine simulation environment,
Loongson,
instruction set translation,
binary migration
中图分类号:
苏煜,张涛,王金双,赵敏. 基于龙芯的Windows软件二进制移植研究[J]. 计算机工程.
SU Yu,ZHANG Tao,WANG Jinshuang,ZHAO Min. Research on Windows Software Binary Migration Based on Loongson[J]. Computer Engineering.