Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for grabbing branch instructions based on fast emulator qemu

A branch instruction and simulator technology, applied in the computer field, can solve problems such as inability to grasp branch instructions, and achieve the effect of low cost and high compatibility

Active Publication Date: 2021-04-20
LOONGSON TECH CORP
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method and device for capturing branch instructions based on the fast emulator QEMU, so as to solve the problem that the branch instruction capturing method in the prior art can only capture the branch instructions in the execution program of a processor architecture, but cannot The problem of fetching branch instructions in the executive program of other processor architectures

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
  • Method and device for grabbing branch instructions based on fast emulator qemu
  • Method and device for grabbing branch instructions based on fast emulator qemu
  • Method and device for grabbing branch instructions based on fast emulator qemu

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0068] The present invention provides a method and device for capturing branch instructions based on the fast emulator QEMU, so as to solve the problem that the branch instruction capturing method in the prior art can only capture the branch instructions in the execution program of a processor architecture, but cannot The problem of fetching branc...

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 provides a method and device for capturing branch instructions based on a fast emulator QEMU. The method for grabbing branch instructions based on the fast emulator QEMU provided by the present invention includes: when QEMU executes and obtains instructions to be translated, it is judged whether the currently obtained instruction to be translated is a branch instruction, and if so, then according to the target program architecture, the current The branch instruction executes the translation operation, obtains the translated branch instruction, and stores the attribute information of the above branch instruction; wherein, the attribute information of the above branch instruction includes the operation code of the above branch instruction, the instruction address of the above branch instruction and the jump of the above branch instruction Forward address. The method and device for capturing branch instructions based on the fast emulator QEMU provided by the present invention can capture branch instructions in execution programs of different processor architectures, with high compatibility and low cost.

Description

technical field [0001] The invention relates to computer technology, in particular to a method and device for capturing branch instructions based on a fast emulator QEMU. Background technique [0002] The branch predictor is a key component of the central processing unit (Central Processing Unit, referred to as CPU), which can help the CPU to obtain instructions faster and speed up the operation of the CPU, and the branch instruction set can check the branch instruction predictor before tape-out Verification and testing are performed to determine the performance of the branch predictor and to determine whether branch predictor improvements are required. Therefore, in order to effectively predict the performance of the branch predictor, it is particularly important to capture the branch instructions in the executable program. [0003] In prior art 1, a monitoring circuit is added to the main board of the CPU, and the monitoring circuit is connected to a memory, so that progr...

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 Patents(China)
IPC IPC(8): G06F9/38G06F9/455
CPCG06F9/3804G06F9/4552
Inventor 张立志李策高新博汪文祥
Owner LOONGSON TECH CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More