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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 