Font Size: a A A

Digital Design And Implementation Of Loongson 3A Processor Based On QEMU

Posted on:2019-03-07Degree:MasterType:Thesis
Country:ChinaCandidate:J J YuFull Text:PDF
GTID:2348330569995733Subject:Engineering
Abstract/Summary:PDF Full Text Request
The Loongson 3A processor is a domestically produced processor independently developed by the Chinese Academy of Sciences,and its stability and reliability are better.Therefore,adopting a Loongson processor in the military industry has improved safety.With the continuous development of computers,virtualization technology has been promoted universally,and virtualization software platforms are also emerging.This paper mainly selects QEMU,which is the popular virtualization software platform.Through the research on the operating mechanism of the open source virtual machine QEMU,the virtualization of Loongson 3A processor is realized.And through the C language script interpreter,complete the virtual machine's attribute configuration.Through virtualization of the hardware,the flight control software onboard can depart from the dependence on hardware delivery and the time required for hardware design modification in the development process.Through the simple configuration of the model,software can be developping,debugging and testing advanced on the simulation platform.This paper mainly studies the following aspects:1?The basic architecture and operating mechanism of the QEMU virtual machine are studied.Research the entire process of processor virtualization implementation.2?According to the Loongson 3A processor user manual,learn about the architecture and performance of the Loongson 3A processor.According to the dynamic binary translation mechanism,the instruction system and registers of the Loongson 3A processor are completed.3?In order to speed up the translation of the instruction and improve the performance of the Loongson3 A processor,this thesis conducts a deep research on the dynamic binary translation mechanism and optimizes the instruction translation process through the elimination method of redundant code.4?Research hardware breakpoints and hardware breakpoint matching algorithm based on dynamic binary translation mechanism,Realize the function of hardware breakpoint in the process of joint debugging of Loongson 3A virtual machine and flight control software development environment.5?In order to track the processor's operating state and understand its internal changes,use GDB as a debugging tool.When GDB debugs a QEMU virtual machine,it also needs to implement the communication and function functions of the GDB and QEMU virtual machines.Therefore,this paper also needs to implement GDB porting.6?Use GDB to debug and verify that the processor's functionality meets the hardware requirements.And test the speed of the command to test whether it meets the required performance indicators.Finally transplant the operating system to test the completeness of the processor function.Use the QEMU virtual machine to virtualize the Loongson 3A processor so that it simulates the functionality of the real hardware,it can ultimately enable the flight control on-board software to run on the Loongson 3A virtual machine.The hardware breakpoint function is implemented on the virtual machine so that the virtual flight control computer can be jointly debugged with the flight control software development enviroment.
Keywords/Search Tags:QEMU, virtualization, GDB, hardware breakpoint, dynamic binary translation mechanism
PDF Full Text Request
Related items