摘要
由于龙芯采用无内部互锁流水级的微处理器(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倍和QEM U全系统仿真方案的7.38倍,运行效率明显提高。
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.
出处
《计算机工程》
CAS
CSCD
北大核心
2016年第10期107-112,共6页
Computer Engineering
基金
国家部委基金资助项目
关键词
QEMU虚拟机
Wine仿真环境
龙芯
指令集翻译
二进制移植
QEMU virtual machine
Wine simulation environment
Loongson
instruction set translation
binary migration