Unlock instant, AI-driven research and patent intelligence for your innovation.

Implementing device for precise data breakpoint in microprocessor and method thereof

A microprocessor and precise data technology, which is applied in the field of data breakpoint realization devices in microprocessors, can solve the problems of increasing design complexity, achieve increased scalability, flexible breakpoint configuration, and realize precise data breakpoints Effect

Active Publication Date: 2010-07-14
LOONGSON TECH CORP
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in a processor that implements out-of-order scheduling, precise breakpoints will increase the design complexity, because when the result of the fetch operation is returned to determine whether the breakpoint matches, the instruction after this instruction may have implement

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
  • Implementing device for precise data breakpoint in microprocessor and method thereof
  • Implementing device for precise data breakpoint in microprocessor and method thereof
  • Implementing device for precise data breakpoint in microprocessor and method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] like figure 1 As shown, a device for implementing precise data breakpoints in a microprocessor includes:

[0054] Breakpoint configuration component 1, used to save one or more pieces of breakpoint configuration information;

[0055] A breakpoint matching determination component 2 is used to determine whether the memory access instruction matches the breakpoint configuration information stored in the breakpoint configuration component 1, and save the determination result in the state field of the memory access instruction execution;

[0056]The breakpoint triggering component 3 is used to check the state field of the memory access instruction, and when the judgment result is a match, suspend the normal execution state of the processor and enter the debugging state.

[0057] Wherein, in the breakpoint configuration component 1, the breakpoint configuration information is organized into a breakpoint configuration information table in the form of a fully associative looku...

Embodiment 2

[0075] like figure 2 As shown, a method for realizing a precise data breakpoint in a microprocessor adopts the device for realizing a precise data breakpoint in a microprocessor described in Embodiment 1, and includes the following steps in turn:

[0076] A, breakpoint configuration step 10, for saving one or more breakpoint configuration information;

[0077] B. Breakpoint matching judgment step 20, used to judge whether the memory access instruction matches the breakpoint configuration information, and save the judgment result in the state domain of the execution of the memory access instruction;

[0078] C. Breakpoint triggering step 30 is used to check the state field of the memory access instruction, and when the judgment result is a match, suspend the normal execution state of the processor and enter the debugging state.

[0079] The breakpoint configuration information in step A is organized into a breakpoint configuration information table in the form of a fully asso...

example 1

[0101] Example 1. Configure two data breakpoints in the processor through software:

[0102] The first item: Observe address and data at the same time, address: 0x00401280, which is a virtual address; data: 0x0, both address and data mask are 0xffffffff;

[0103] The second item: only observe the address, address: 0x0047ff80, which is a virtual address, and the address mask is 0xffffff80.

[0104] Store these two data breakpoints in the first and second items of the breakpoint configuration information table during configuration. For the first item, its data access address field, address mask field, data access value field and value mask field, address mode field, matching mode field and enable control field are numbered sequentially from 0 to 6 site. The seven fields of the second entry are addressed sequentially from 7 to 13.

[0105] Take the writing of the address field of the first item as an example, first write 0 to the address interface special register, that is, wr...

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 discloses an implementing device for precise data breakpoint in microprocessor and a method thereof. The device comprises a breakpoint configuring part, a breakpoint match judging part and a breakpoint triggering part, wherein, the breakpoint configuring part is used for preserving one piece or plural pieces of breakpoint configuring information, the breakpoint match judging part is used for judging whether a memory-reference instruction is matched with the breakpoint configuring information preserved in the breakpoint configuring part and preserving the judgment result in the state domain executed by the memory-reference instruction, and the breakpoint triggering part is used for checking the state domain of the memory-reference instruction, when the judgment result shows match, the normal executing state of the processor is suspended, and the processor enters into debug state. The manages breakpoint configuring information by adopting chart form, thus not only strengthening expansibility of breakpoint configuring capacity, but also causing breakpoint configuring to be more flexible. And precise data breakpoint can be effectively implemented by fine sorting breakpoint match success state and quasi breakpoint match success state under the condition that the processor flow line is hardly altered.

Description

technical field [0001] The invention belongs to the technical field of microprocessors, in particular to a device and method for realizing data breakpoints in microprocessors. Background technique [0002] With the increasing scale of the software system on the computer, the difficulty of software system development is also greatly increased. As an important part of the software development process, software debugging work, and the improvement of its efficiency has become an important issue of concern in computer system development. The support provided by the underlying hardware of the computer system for software debugging will greatly improve the efficiency of software debugging, so modern processor hardware provides special support for software debugging. For example, the JTAG debugging interface of the ARM processor and the EJTAG debugging interface of the MIPS processor. Through these interfaces, the software can directly control the underlying hardware to perform fun...

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): G06F11/36
Inventor 汪文祥李祖松徐翠萍郝守青
Owner LOONGSON TECH CORP