Multithreading method of dynamic code conversion of loongson multi-core central processing unit (CPU) simulation

A dynamic code and code conversion technology, applied in multi-programming devices, software emulation/interpretation/simulation, inter-program communication, etc., can solve the problems of not completing the communication process in time, reducing the simulation efficiency of Loongson multi-core CPU, etc., to avoid waiting , improve efficiency, realize the effect of parallelization

Active Publication Date: 2013-04-17
BEIHANG UNIV
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Existing simulation implementations of Loongson multi-core CPUs do not allow multiple analog cores to perform parallel code conversion, which reduces the simulation efficiency of Loongson multi-core CPUs, such as figure 1 As shown, in the current Loongson multi-core CPU simulation implementation, since each simulated CPU core obtains an execution opportunity according to the polling method, at the same time, during the inter-core communication process, the simulated core that needs to respond fails because it does not get an execution opportunity. The communication process cannot be completed in time, thereby reducing the simulation efficiency of the Loongson multi-core CPU

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multithreading method of dynamic code conversion of loongson multi-core central processing unit (CPU) simulation
  • Multithreading method of dynamic code conversion of loongson multi-core central processing unit (CPU) simulation
  • Multithreading method of dynamic code conversion of loongson multi-core central processing unit (CPU) simulation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0019] A main idea of ​​the present invention is to parallelize the dynamic code conversion of each core in the process of simulating the Loongson multi-core cpu, so as to avoid unnecessary waiting in the polling execution process of each core and in the inter-core communication process , and then improve the simulation efficiency of the Loongson multi-core CPU.

[0020] The dynamic code conversion timing diagram of Loongson multi-core CPU after parallelization is as follows figure 2 As shown in the figure, we can see that multiple CPU cores are executed in parallel during the entire code translation process, and multiple CPUs perform dynamic code conversion at the same time at the same time.

[0021] Such as image 3 As shown, a kind of multi-thread dynamic code conversion method for Loongson multi-core CPU simulation according to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a multithreading method of dynamic code conversion of loongson multi-core central processing unit (CPU) simulation. The multithreading method includes: initializing a loongson multi-core CPU needing simulation; preparing the corresponding dynamic code conversion environments for all cores of the CPU to be simulated; completing initialization of all dynamic code conversion through cross-thread communication; leading all the dynamic code conversion threads to start to work parallely. The multithreading method is characterized in that the cores of the loongson multi-core CPU needing simulation are detected, the corresponding multi-thread dynamic code conversion environments are prepared, parallel execution of dynamic code conversion is ensured by aid of the communication mechanism between multiple threads, unnecessary waiting of simulation cores when needing to obtain the execution chance and in the inter-core communication process is avoided, and the simulation efficiency of the loongson multi-core CPU is improved. The multithreading method has wide practical value and application value in the technical field of computer virtualization.

Description

technical field [0001] The present invention relates to the multi-threading method of the dynamic code conversion of Loongson multi-core CPU simulation, in particular to a multi-threaded code conversion environment design, a communication mechanism between multi-conversion threads, and multi-threading of Loongson multi-core CPU based on the above method. The thread simulation method is capable of optimizing the simulation efficiency by performing code conversion with multiple threads in parallel when simulating the Loongson multi-core CPU, and belongs to the technical field of computer virtualization. Background technique [0002] Most of the servers currently using domestic Loongson processors use Loongson multi-core CPUs. Usually, the CPU hardware needs to be simulated during the research and development process. CPU simulation refers to simulating the corresponding hardware environment through software methods and providing a transparent environment to the upper layer. Th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F9/46G06F9/54
Inventor 肖利民唐浩夫阮利王慧祥徐鹏
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products