基于龍芯平臺(tái)的并行化動(dòng)態(tài)二進(jìn)制翻譯中無(wú)鎖隊(duì)列的研究
[Abstract]:In recent years, the mainstream desktop and server software are developed on x86 platform, but Godson is a processor based on MIPS instruction set. Therefore, how to make the existing x86 platform software compatible with MIPS architecture has become an important issue in the development of domestic chips. Binary translation is an important method to realize the compatibility between x86 software and Godson cpu. At present, QEMU is mainly used as the whole system simulator on the Godson platform. It has been able to run the windows XP operating system on the Godson platform through binary translation technology. But its performance needs to be improved. After the development of processor frequency into 2GHz, the performance improvement caused by improving processor efficiency is more limited. In order to ensure that Moore's law continues to be effective, multi-core processor has become a trend. However, the existing full-system simulation is serial simulation, only uses the host processor single core resources, so the parallelization of the whole system simulation is urgent. The real realization of parallel system level simulation will greatly improve the speed and performance of the machine and finally realize the commercial industrialization of domestic chips. How to make the Longson platform in the simulation of x86 can give play to its core number advantage, gradually become the focus of research. At present, parallelization simulation based on QEMU has been studied in the industry. For example, PQEMU, HQEMU, COREMU has parallelized QEMU from different angles. But none of these parallel system simulators use the Godson platform as the host machine. This paper mainly analyzes the running principle of QEMU, the simulation principle of SMP machine by QEMU and the implementation of parallel QEMU. In this paper, we choose to change the simulation of SMP machines from serial to parallel by QEMU, encapsulate the simulation logic of different cores of SMP machines by QEMU into different threads, and schedule these threads by the operating system. These threads are executed concurrently on several cores of the dragon core, so that the multi-core dragon core simulates the multi-core X86 machine. This parallelization method needs to solve two key problems: atomic instruction translation and SMP machine interrupt simulation. My team has proposed an atomic instruction translation scheme based on gcc's built-in atomic op-operation function. However, I have found that there are some problems in this translation scheme. One is that the expansion of simple instruction translation exceeds that of complex instruction. Second, when dealing with unaligned atomic instructions, it is not able to deal with all possible situations. In this paper, a new atomic instruction translation scheme using MIPS's 11/sc instruction pair is proposed. The scheme has no redundant operation and can solve the problem of unaligned atomic instruction translation completely. In this paper, linux real-time signal and FIFO queue are used to simulate SMP machine interrupt. In order to ensure the efficiency of interrupt simulation, it is necessary to implement FIFO queue using lock-free technology. According to the characteristics of 11/sc instruction pair of MIPS and the characteristics of unlocked queue in interrupt simulation, this paper presents an algorithm of unlocked queue which can avoid the ABA problem, which greatly improves the efficiency of interrupt simulation. Finally, the QEMU can run in parallel on the Godson 3A platform, which can make full use of the core number advantage of the Godson host platform.
【學(xué)位授予單位】:中國(guó)科學(xué)技術(shù)大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TP332;TP391.2
【參考文獻(xiàn)】
相關(guān)期刊論文 前6條
1 王煥東;高翔;陳云霽;胡偉武;;龍芯3號(hào)互聯(lián)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];計(jì)算機(jī)研究與發(fā)展;2008年12期
2 王博;尚世鋒;武永衛(wèi);鄭緯民;;多核體系下的并行任務(wù)構(gòu)建[J];計(jì)算機(jī)研究與發(fā)展;2012年04期
3 蔡嵩松;劉奇;王劍;劉金剛;;基于龍芯處理器的二進(jìn)制翻譯器優(yōu)化[J];計(jì)算機(jī)工程;2009年07期
4 廖銀;孫廣中;姜海濤;靳國(guó)杰;陳國(guó)良;;動(dòng)態(tài)二進(jìn)制翻譯中全寄存器直接映射方法[J];計(jì)算機(jī)應(yīng)用與軟件;2011年11期
5 殷金彪;宋強(qiáng);;動(dòng)態(tài)二進(jìn)制翻譯器qemu的Tcache管理策略[J];計(jì)算機(jī)應(yīng)用與軟件;2012年09期
6 宋克鑫;陳香蘭;陳華平;王篁;;動(dòng)態(tài)二進(jìn)制翻譯的多核并行化中原子指令的翻譯研究[J];計(jì)算機(jī)應(yīng)用與軟件;2013年11期
相關(guān)博士學(xué)位論文 前1條
1 廖銀;動(dòng)態(tài)二進(jìn)制翻譯建模及其并行化研究[D];中國(guó)科學(xué)技術(shù)大學(xué);2013年
,本文編號(hào):2343452
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2343452.html