USRE47851E1 - Data processing system having cache memory debugging support and method therefor - Google Patents
Data processing system having cache memory debugging support and method therefor Download PDFInfo
- Publication number
- USRE47851E1 USRE47851E1 US13/172,508 US201113172508A USRE47851E US RE47851 E1 USRE47851 E1 US RE47851E1 US 201113172508 A US201113172508 A US 201113172508A US RE47851 E USRE47851 E US RE47851E
- Authority
- US
- United States
- Prior art keywords
- effective address
- cache
- instruction
- hit
- tlb
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active, expires
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
Definitions
- the present invention relates generally to data processing, and more particularly, to a data processing system having cache memory debugging support and method therefor.
- Data processing systems typically include debug circuitry to permit a programmer to determine various values within the system at different points in time. Some data processing systems allow the debug circuitry to operate in near “real-time”.
- the debug circuitry Currently in real-time debugging, if a variable is cached, the debug circuitry has no easy access to the latest value of the variable without a very intrusive set of operations to cause a central processing unit (CPU) in the system to be halted and the value extracted from the cache via execution of multiple instructions including load and store instructions passed in through a JTAG (Joint Test Action Group) port or other debug interface. This may cause undesirable state changes within the cache memory.
- JTAG Joint Test Action Group
- the load and store instructions can cause additional message generation for real-time debug trace units, in order to expose the variable, which may result in a bandwidth issue.
- the problem is more acute if a cache hierarchy exists between the CPU and the debug circuitry. Further, because current intrusive methods of determining cache values affect the state of the cache, particular debugging issues may not be exposed in the same manner due to differences in the cache and system state caused by the debugging operation, and may even hide the problem being debugged.
- FIG. 1 illustrates, in block diagram form, a data processing system in accordance with one embodiment of the present invention.
- FIG. 2 illustrates, in block diagram form, a processor of the data processing system of FIG. 1 .
- FIG. 3 illustrates, in block diagram form, a portion of the processor of FIG. 2 .
- FIG. 4 illustrates an instruction bit field in accordance with the present invention.
- bus is used to refer to a plurality of signals or conductors which may be used to transfer one or more various types of information, such as data, addresses, control, or status.
- the conductors as discussed herein may be illustrated or described in reference to being a single conductor, a plurality of conductors, unidirectional conductors, or bidirectional conductors. However, different embodiments may vary the implementation of the conductors. For example, separate unidirectional conductors may be used rather than bidirectional conductors and vice versa.
- plurality of conductors may be replaced with a single conductor that transfers multiple signals serially or in a time multiplexed manner. Likewise, single conductors carrying multiple signals may be separated out into various different conductors carrying subsets of these signals. Therefore, many options exist for transferring signals.
- the present invention provides, in one embodiment, a method and apparatus for showing a data block from a cache memory that is not directly visible on a system bus during a debugging operation.
- the data block is shown by making the data block available on a system bus.
- the data block cache status is not modified regardless of whether it is currently “dirty” or “clean”.
- the method is implemented as an instruction in a data processing system.
- the instruction causes the data block to be exposed to the system bus where it can be captured by a debugging circuit, such as an IEEE ISTO-5001 compliant NexusTM debugging unit.
- NexusTM is a trademark of Freescale Semiconductor, Inc. located in Austin, Tex.
- the current state of the cache is not affected, including data tag and status information associated with each cache entry, as well as all replacement location logic used to determine an entry to next be replaced on a cache miss. Also, if the value is not in the cache, the value can be retrieved from the system external to the cache so that it is made visible to the debugging circuit, without having the value written to the cache.
- the instruction allows real-time debugging circuits to be able to view the current value of one or more variables in memory that may be hidden from access due to cache hierarchy without modifying the value or impacting the current state of the cache.
- prior art systems utilize a series of memory access instructions such as load and store instructions, or utilize one or more cache management instructions, such as a block flush instruction, to cause operand values contained in one or more memory locations (which may be cached) to be made visible to a real-time debug unit so that the values can be captured and messaged out externally to the user of the system for debugging purposes.
- these prior art methods interact with a cache or caches in the system and cause normal activity such as cache line replacements and allocations, and state changes to cache line status to occur, which intrusively modify the state of the system. This intrusive modification is not desirable, since it interacts with the normal activity of the system which would have occurred if no debugging activity was performed, and this interaction may cause numerous unintended side-effects.
- a method for operating a processor coupled to a system bus and having a cache comprises: receiving an instruction which indicates an effective address; and executing the instruction, wherein executing the instruction comprises: determining if the effective address results in a hit or a miss in the cache; and when the effective address results in a hit, providing data associated with the effective address from the cache to the system bus without modifying a state of the cache.
- a method for operating a processor coupled to a system bus and having a cache comprising: receiving an instruction which indicates an effective address; determining that the effective address results in a hit in the cache, wherein determining comprises identifying a hit entry in the cache associated with the effective address; and when a dirty bit of the hit entry indicates that data stored in the hit entry is clean, providing at least a portion of the data stored in the hit entry from the cache to the system bus.
- a method for operating a processor having a table look-aside buffer comprises: receiving an instruction which indicates an effective address and which includes a TLB exception indicator; providing the effective address to the TLB; when the effective address results in a miss in the TLB, selectively taking an exception based on the TLB exception indicator; and when the effective address results in a hit in the TLB, providing a translated address from the TLB corresponding to the effective address.
- a data processing system that comprises a processor having a cache, the processor coupled to receive and execute instructions from debug circuitry.
- the cache comprises a cache array storing a plurality of cache entries and cache control circuitry.
- the cache control circuitry is coupled to the cache array and determines if an effective address indicated by an instruction received from the debug circuitry results in a hit or a miss in the cache array. When the effective address results in a hit, the cache control circuitry enables the cache array to provide data associated with the effective address to a system bus coupled to the processor and the debug circuitry without modifying a state of the cache array.
- FIG. 1 illustrates, in block diagram form, a data processing system 10 in accordance with one embodiment of the present invention.
- Data processing system 10 includes a processor 12 , a debug circuit 14 , an input/output (I/O) 16 , and a memory 18 , all bi-directionally coupled to a bus 20 .
- processor 12 includes a processor 12 , a debug circuit 14 , an input/output (I/O) 16 , and a memory 18 , all bi-directionally coupled to a bus 20 .
- I/O input/output
- data processing system 10 may be located on a single integrated circuit or within a same device.
- data processing system 10 may include any number of separate integrated circuits or separate devices interconnected with each other.
- the memory 18 may be located on one or more integrated circuits, separate from the rest of data processing system 10 .
- the memory 18 may be any type of memory, such as, for example, a read only memory (ROM), a random access memory (RAM), non-volatile memory (e.g. Flash), etc. Also, memory 18 may be a memory or other data storage located within another peripheral or slave or on a different integrated circuit.
- ROM read only memory
- RAM random access memory
- Flash non-volatile memory
- memory 18 may be a memory or other data storage located within another peripheral or slave or on a different integrated circuit.
- processor 12 and debug circuitry 14 are bus masters.
- processor 12 is a processor capable of executing instructions, such as a microprocessor, digital signal processor, etc., or may be any other type of bus master, such as for example, a direct memory access (DMA) controller, or the like.
- DMA direct memory access
- other slave devices may be included in data processing system 10 that are not illustrated in FIG. 1 , such as for example, another memory coupled to bus 20 , as well as any type of peripheral circuit which resides on the system bus or coupled to I/O circuit 16 .
- Processor 12 includes a cache 13 .
- Cache 13 functions as a level one (L1) cache for storing data and/or instructions for use by processor 12 .
- L1 cache level one
- Cache 13 may comprise a separate data cache and a separate instruction cache.
- Cache 13 comprises one or more data arrays, one or more tag arrays, and one or more status bit arrays.
- the tag and status information may be stored in a common array.
- Each cache entry consists of a block or line of data, a tag value which associates the data with a memory address, and status information, including whether the cache entry is valid, whether the cache entry is “dirty”, i.e. modified with respect to the data associated with the same address in memory 18 or other external memory blocks if present, and other associated status information.
- memory 18 , or a portion of memory 18 may be characterized as a level two (L2) cache.
- An input/output (I/O) module 16 is bi-directionally connected to the bus 20 and to external circuitry (not shown).
- the I/O module 16 includes various interface circuits depending upon type of external circuitry that is connected to the I/O module 16 .
- 1 / 0 module 16 may optionally contain one or more alternate bus masters coupled to bus 20 .
- Debug circuit 14 is bi-directionally connected to bus 13 and to processor 12 via bus 15 .
- Debug circuit 14 is also bi-directionally connected to external circuitry (not shown) such as a hardware tester or other debugging interface hardware.
- debug circuitry 14 functions as a diagnostic check for data processing operations related to an access to cache 13 , memory 18 , and I/O module 16 , and in other embodiments, other types of data retention circuits utilized by data processing system 10 whether internal to or external to data processing system 10 .
- the processor 12 and alternate bus masters obtain mastership of the system bus 20 as needed and selectively access the system memory 18 to retrieve and store data and instructions.
- Debug circuitry 14 may be configured by the user of data processing system 10 to capture the values of one or more memory locations by monitoring addresses presented on bus 20 , and capturing or sampling the related data values presented on bus 20 . During bus read operations, the data values are provided by a selected slave device such as memory 18 .
- the data values are provided by a bus master of bus 20 such as processor 12 .
- debug circuitry 14 monitors each transfer and selectively captures data values corresponding to data locations the user of debug circuitry 14 wishes to monitor. These values and conditions may be programmed into and transferred from debug circuitry 14 via the terminals shown in FIG. 1 .
- An instruction is provided in data processing system 10 to allow debug circuitry 14 to “see” a value which may be stored in cache 13 .
- the instruction is herein after referred to as a “data cache block show” instruction and includes an effective address corresponding to the value.
- the instruction is executed by the processor. It is determined if the effective address results in a “hit” or a “miss” in the cache. When the effective address results in a hit, the value is provided to bus 20 associated with the effective address from the cache 13 .
- Debug circuitry 14 then has access to the value from the bus 20 as it is provided by the processor. In one embodiment, debug circuitry 14 monitors transactions on bus 20 , and is capable of sampling the address and associated data values as bus transfers occur.
- Desired values can then be transferred after sampling to a user of the system performing a debugging operation by means of signals from debug circuitry 14 of FIG. 1 .
- a state of cache 13 is not modified when the value is placed on the bus 20 .
- the effective address results in a miss, one feature of the instruction allows the value to be retrieved from another memory, such as for example, memory 18 .
- value is retrieved from another memory, the value is placed on bus 20 by the memory during retrieval, allowing access to the value by debug circuitry 14 .
- the value is not then stored in cache 13 as required by normal load and store instruction misses.
- the value is discarded after being shown on bus 20 .
- Cache lines are not replaced on misses, and no state changes occur to the status bits, data, or tag information contained in the cache.
- the state of one or more cache line replacement algorithm state variables remain unchanged, such as least recently used status bits, etc.
- a “dirty bit” is associated with a cache entry indicates whether or not data in the cache associated with the effective address is different (i.e. has been modified) from data stored at another memory location, such as memory 18 , corresponding to the effective address.
- a “dirty bit” associated with the effective address of the value is not modified when the value is retrieved from the cache and presented to the system bus 20 in response to executing the data cache block show instruction.
- cache 13 is not modified if the value associated with the effective address in cache 13 is the same as the value in another memory location, i.e. the data is clean.
- the data stored in the entry is provided to bus 20 and the entry is not modified.
- a dirty bit of the hit cache entry indicates that data stored in the entry is dirty
- the data stored in the entry is still provided to bus 20 , and the entry is not modified, and the dirty bit is not cleared, unlike in prior art cache control instructions.
- the data cache block show instruction will be discussed in more detail below.
- FIG. 2 illustrates, in block diagram form, processor 12 of the data processing system 10 of FIG. 1 .
- Processor 12 includes cache 13 , bus interface unit 26 , general purpose registers (GPRS) 32 translation look-aside buffer (TLB) 35 , internal debug circuitry 34 , control circuitry 36 , instruction decode unit 38 , instruction fetch unit 40 , and execution units 42 .
- GPRS general purpose registers
- TLB translation look-aside buffer
- internal debug circuitry 34 control circuitry 36 , instruction decode unit 38 , instruction fetch unit 40 , and execution units 42 .
- cache 13 is bi-directionally coupled to control circuitry 36 , to execution units 42 , to instruction fetch unit 40 , to TLB 35 , to BIU 26 , and to internal debug circuit 34 .
- TLB 35 is bi-directionally coupled to control circuitry 36 , to execution units 42 , and to cache 13 .
- Execution units 42 is bi-directionally coupled to cache 13 , to instruction decode unit 38 , to TLB 35 , to control circuitry 36 , and to GPRS 32 .
- BIU 26 is bi-directionally coupled to cache 13 , to instruction fetch unit 40 , to control circuitry 36 , to execution units 42 , and to bus 20 .
- GPRS 32 is bi-directionally coupled to control circuitry 36 , and to execution units 42 .
- Internal debug circuit 34 is bi-directionally coupled to control circuitry 36 .
- Control circuitry 36 is bi-directionally coupled to instruction fetch unit 40 , to instruction decode unit 38 , to TLB 35 , to cache 13 , to BIU 26 , to execution units 42 , to internal debug circuit 34 , and to GPRS 32 .
- Control circuitry 36 includes a condition register 37 .
- Condition register 37 generally reflects results of instruction execution. Typically, these include relational values set as the result of an arithmetic, logical, or comparison operation instruction.
- condition register 37 may be updated with status reflected during operation of the data cache block show instruction. For example, when the data cache block show instruction is provided by, for example, debug circuitry 14 for execution by processor 12 , an error may occur during the attempted execution of the instruction.
- the condition register 37 comprises one or more error update indicators that can be updated by processor 12 in response to an error occurring during execution of the instruction.
- Instruction decode unit 38 is bi-directionally coupled to debug circuitry 14 , to instruction fetch unit 40 , and to execution units 42 .
- Instruction fetch unit 40 is bi-directionally coupled to debug circuitry 14 , to instruction decode unit 38 , to cache 13 , and to BIU 26 .
- Each of instruction fetch unit 40 , instruction decode unit 38 and control circuitry 36 are directly coupled to debug circuitry 14 . Note that in other embodiments, processor 12 may have different processing blocks and the connections between the blocks may be different.
- FIG. 3 illustrates, in block diagram form, cache 13 and TLB 35 of the processor 12 of FIG. 2 in more detail.
- Cache 13 includes cache control circuitry 54 and cache array 50 .
- TLB 35 includes TLB control circuitry 56 and buffer 58 .
- Cache array 50 is an array of random access memory cells organized as a plurality of entries.
- cache array 50 comprises SRAM (static random access memory) memory cells. In other embodiments, other memory types are suitable.
- entry 52 is representative of the plurality of entries and includes a TAG address bit field labeled “TAG ADDRESS FIELD”, a TAG status bit field labeled “TAG STATUS BITS” and a data bit field labeled “DATA”.
- the TAG status bit field includes a valid bit labeled “V” and a dirty bit labeled “D”. Each entry may be referred to as a “cache line” for processor 12 .
- Cache array 50 is bi-directionally coupled to both cache 3 0 control circuitry 54 and to bus 20 via BIU 26 .
- Cache control circuitry 54 is bi-directionally coupled to control circuitry 36 .
- Cache control circuitry 54 determines if an effective address pointed to by an instruction received from, for example, cache 13 , memory 18 , or debug circuitry 14 is a hit or a miss in cache 13 .
- buffer 58 is bi-directionally coupled to TLB control circuitry 56 and is for storing physical addresses that correspond to the effective addresses from execution units 42 .
- TLB control circuitry 56 is coupled to both control circuit 36 and to cache control circuitry 54 for providing a TLB hit or miss indicator. TLB control circuitry 56 is also coupled to cache control circuitry 54 for providing a physical address corresponding to an effective address (EA). Address translation from an effective address to a physical address is performed by TLB 35 in a standard manner as is known in the art. Cache control circuitry 54 determines if an effective address pointed to by an instruction results in a hit or miss by comparing the physical address for an access provided by TLB 35 , to the stored value(s) contained in one or more tag entries in cache array 50 . In some embodiments, TLB 35 is optional, and if not present, the effective address (EA) is provided directly to cache 13 without translation. In such embodiments, stored tag values correspond directly to effective addresses without address translation to a physical address occurring.
- FIG. 4 illustrates a data cache block show instruction bit field 60 in accordance with the present invention.
- the data cache block show instruction can be issued by any bus master of data processing system 10 .
- the data cache block show instruction is issued by debug circuitry 14 .
- one or more data cache block show instructions may be stored in program memory locations contained in memory 18 , or elsewhere within data processor 10 , and may be retrieved by processor 12 as a part of normal instruction stream processing.
- bits [ 0 - 5 ] of the instruction are used to identify the instruction as the data cache block show instruction.
- bits [ 0 - 5 ] are 011111.
- bits [ 0 - 5 ] may be different.
- the number of bits in each bit field may be different.
- Bits [ 6 - 10 ] are labeled “#opt” and are for indicating which of five features are to be used with the instruction:
- #opt [miss_fetch_true, signal_TLB_exceptions, size_of_show, mask_data_bkpt, record_status].
- Bits [ 11 - 15 ], labeled “RA” and bits [ 16 - 20 ] labeled “RB” are the effective address offset and the effective address base register values, respectively, use to compute the effective address of the data to be made available on bus 20 .
- Bits [ 21 - 30 ] labeled “TBD” are not used for this instruction.
- Bit [ 31 ] indicates the end of the instruction.
- the data cache block show instruction is provided to force visibility of a potentially cached location to an agent external to the processor 12 , for example, debug circuitry 14 for debug visibility purposes.
- No data breakpoint event occurs as part of the execution of this instruction if the option bit field #opt[mask_data_bkpt] of bits [ 6 - 10 ] indicates breakpoints should be masked.
- Normal load and store instructions continue to generate data breakpoint events if so enabled by internal debug circuitry 34 of FIG. 2 .
- Watchpoint signaling is implementation dependent, and may also be controlled by internal debug circuitry 34 of FIG. 2 to generate watchpoint events when certain effective address matches for a data access occur.
- the addressed data block is written to a memory higher in the memory hierarchy, such as for example, memory 18 .
- the state of the data block in cache 13 is not altered. The data block is written to bus 20 regardless of whether it is “dirty” or “clean”.
- the size of the data block written to bus 20 is determined by the feature #opt[size_of_show], where “size_of_show” is a data block size indicator.
- the data block “shown” by the instruction may be all of a cache line associated with an effective address or may be less than all of a cache line based on the size indicator. If the data block containing the byte addressed by the effective address is not in cache 13 and the feature #opt[miss_fetch_true] indicates that miss fetching should occur, the addressed block is fetched from another memory of the system, such as memory 18 , to be made visible on bus 20 for capture by debug circuitry 14 , and is discarded by processor 12 . Otherwise, if #opt[miss_fetch_true] indicates no miss fetching is to occur, then the instruction is treated as a NOP (no operation) if a miss occurs and no data is provided to bus 20 .
- #opt[signal_TLB_exceptions] is set as true, then the effective address is translated to a physical address by TLB 35 and the physical address used to determine if the effective address results in a hit or a miss. If a TLB Miss or TLB Protection violation occurs, it is signaled within processor 12 , and exception processing is initiated to deal with the generated error condition. Conversely, if #opt[signal_TLB_exceptions] is set as false, TLB Miss and TLB Protection violations are ignored, and the instruction is treated as a NOP of one if these conditions is encountered, and no exception is taken. If TLB errors, bus errors, or other errors occur as part of the execution of this instruction, the errors are signaled via a status bit in the control register 37 if #opt[record_status] is set.
- the feature #opt[signal_TLB_exceptions] can be used with other instructions besides the data cache block show instruction.
- #opt[signal_TLB_exceptions] is set true, a effective address associated with an instruction is provided to TLB 35 .
- an exception is taken based on the whether #opt[signal_TLB_exceptions] is set true or false.
- a translated address is provided from TLB 35 for the effective address.
- the function of the data cache block show instruction is independent of whether the data block containing the byte addressed by an effective address is characterized as “write through required” or “caching inhibited”. In either case, the execution of the data cache block show instruction causes the data value to be made visible on bus 20 for sampling or capture by debug circuitry 14 , without affecting the state of the cache. It should be apparent now, that using the data cache block show instruction of the current invention causes the latest data value associated with a memory location to be made visible on the system bus for sampling or capture by debug circuitry, regardless of whether the associated memory location is resident or not in the cache, and if resident, regardless of the clean or dirty status of the data, and in the process of making the value visible, no current cache state, data, tag, or status is altered. Such control results in greatly improved ability to debug a system.
- the terms “comprises,” “comprising,” or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Debugging And Monitoring (AREA)
Abstract
A data processing system having debugging circuitry and a method for operating the data processing system is provided. In the system, a processor has a cache memory and is coupled to a system bus. An instruction is received which indicates an effective address. The instruction is executed and it is determined if the effective address results in a hit or a miss in the cache. If the effective address results in a hit, data associated with the effective address is provided from the cache to the system bus without modifying a state of the cache. The instruction allows real-time debugging circuits to be able to view the current value of one or more variables in memory that may be hidden from access due to cache hierarchy without modifying the value or impacting the current state of the cache.
Description
The present invention relates generally to data processing, and more particularly, to a data processing system having cache memory debugging support and method therefor.
Data processing systems typically include debug circuitry to permit a programmer to determine various values within the system at different points in time. Some data processing systems allow the debug circuitry to operate in near “real-time”. Currently in real-time debugging, if a variable is cached, the debug circuitry has no easy access to the latest value of the variable without a very intrusive set of operations to cause a central processing unit (CPU) in the system to be halted and the value extracted from the cache via execution of multiple instructions including load and store instructions passed in through a JTAG (Joint Test Action Group) port or other debug interface. This may cause undesirable state changes within the cache memory. Also, the load and store instructions can cause additional message generation for real-time debug trace units, in order to expose the variable, which may result in a bandwidth issue. In addition, the problem is more acute if a cache hierarchy exists between the CPU and the debug circuitry. Further, because current intrusive methods of determining cache values affect the state of the cache, particular debugging issues may not be exposed in the same manner due to differences in the cache and system state caused by the debugging operation, and may even hide the problem being debugged.
Therefore, there is a need for a debugging circuit and method that solves the above problems.
The present invention is illustrated by way of example and not limited by the accompanying figures, in which like references indicate similar elements, and in which:
Skilled artisans appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help improve the understanding of the embodiments of the present invention.
As used herein, the term “bus” is used to refer to a plurality of signals or conductors which may be used to transfer one or more various types of information, such as data, addresses, control, or status. The conductors as discussed herein may be illustrated or described in reference to being a single conductor, a plurality of conductors, unidirectional conductors, or bidirectional conductors. However, different embodiments may vary the implementation of the conductors. For example, separate unidirectional conductors may be used rather than bidirectional conductors and vice versa. Also, plurality of conductors may be replaced with a single conductor that transfers multiple signals serially or in a time multiplexed manner. Likewise, single conductors carrying multiple signals may be separated out into various different conductors carrying subsets of these signals. Therefore, many options exist for transferring signals.
Generally, the present invention provides, in one embodiment, a method and apparatus for showing a data block from a cache memory that is not directly visible on a system bus during a debugging operation. The data block is shown by making the data block available on a system bus. When shown, the data block cache status is not modified regardless of whether it is currently “dirty” or “clean”. In one embodiment, the method is implemented as an instruction in a data processing system. The instruction causes the data block to be exposed to the system bus where it can be captured by a debugging circuit, such as an IEEE ISTO-5001 compliant Nexus™ debugging unit. Nexus™ is a trademark of Freescale Semiconductor, Inc. located in Austin, Tex. The current state of the cache is not affected, including data tag and status information associated with each cache entry, as well as all replacement location logic used to determine an entry to next be replaced on a cache miss. Also, if the value is not in the cache, the value can be retrieved from the system external to the cache so that it is made visible to the debugging circuit, without having the value written to the cache. The instruction allows real-time debugging circuits to be able to view the current value of one or more variables in memory that may be hidden from access due to cache hierarchy without modifying the value or impacting the current state of the cache.
Normally, prior art systems utilize a series of memory access instructions such as load and store instructions, or utilize one or more cache management instructions, such as a block flush instruction, to cause operand values contained in one or more memory locations (which may be cached) to be made visible to a real-time debug unit so that the values can be captured and messaged out externally to the user of the system for debugging purposes. However, these prior art methods interact with a cache or caches in the system and cause normal activity such as cache line replacements and allocations, and state changes to cache line status to occur, which intrusively modify the state of the system. This intrusive modification is not desirable, since it interacts with the normal activity of the system which would have occurred if no debugging activity was performed, and this interaction may cause numerous unintended side-effects.
In one aspect there is provided a method for operating a processor coupled to a system bus and having a cache. The method comprises: receiving an instruction which indicates an effective address; and executing the instruction, wherein executing the instruction comprises: determining if the effective address results in a hit or a miss in the cache; and when the effective address results in a hit, providing data associated with the effective address from the cache to the system bus without modifying a state of the cache.
In another aspect there is provided a method for operating a processor coupled to a system bus and having a cache, the method comprising: receiving an instruction which indicates an effective address; determining that the effective address results in a hit in the cache, wherein determining comprises identifying a hit entry in the cache associated with the effective address; and when a dirty bit of the hit entry indicates that data stored in the hit entry is clean, providing at least a portion of the data stored in the hit entry from the cache to the system bus.
In yet another aspect there is provided a method for operating a processor having a table look-aside buffer (TLB). The method comprises: receiving an instruction which indicates an effective address and which includes a TLB exception indicator; providing the effective address to the TLB; when the effective address results in a miss in the TLB, selectively taking an exception based on the TLB exception indicator; and when the effective address results in a hit in the TLB, providing a translated address from the TLB corresponding to the effective address.
In yet another aspect there is provided a data processing system that comprises a processor having a cache, the processor coupled to receive and execute instructions from debug circuitry. The cache comprises a cache array storing a plurality of cache entries and cache control circuitry. The cache control circuitry is coupled to the cache array and determines if an effective address indicated by an instruction received from the debug circuitry results in a hit or a miss in the cache array. When the effective address results in a hit, the cache control circuitry enables the cache array to provide data associated with the effective address to a system bus coupled to the processor and the debug circuitry without modifying a state of the cache array.
Note that in one embodiment, all of data processing system 10 may be located on a single integrated circuit or within a same device. Alternatively, data processing system 10 may include any number of separate integrated circuits or separate devices interconnected with each other. For example, in one embodiment, the memory 18 may be located on one or more integrated circuits, separate from the rest of data processing system 10.
The memory 18 may be any type of memory, such as, for example, a read only memory (ROM), a random access memory (RAM), non-volatile memory (e.g. Flash), etc. Also, memory 18 may be a memory or other data storage located within another peripheral or slave or on a different integrated circuit.
In one embodiment, processor 12 and debug circuitry 14 are bus masters. In one embodiment, processor 12 is a processor capable of executing instructions, such as a microprocessor, digital signal processor, etc., or may be any other type of bus master, such as for example, a direct memory access (DMA) controller, or the like. Note that other slave devices may be included in data processing system 10 that are not illustrated in FIG. 1 , such as for example, another memory coupled to bus 20, as well as any type of peripheral circuit which resides on the system bus or coupled to I/O circuit 16.
An input/output (I/O) module 16 is bi-directionally connected to the bus 20 and to external circuitry (not shown). The I/O module 16 includes various interface circuits depending upon type of external circuitry that is connected to the I/O module 16. 1/0 module 16 may optionally contain one or more alternate bus masters coupled to bus 20.
In general, debug circuitry 14 functions as a diagnostic check for data processing operations related to an access to cache 13, memory 18, and I/O module 16, and in other embodiments, other types of data retention circuits utilized by data processing system 10 whether internal to or external to data processing system 10. The processor 12 and alternate bus masters obtain mastership of the system bus 20 as needed and selectively access the system memory 18 to retrieve and store data and instructions. Debug circuitry 14 may be configured by the user of data processing system 10 to capture the values of one or more memory locations by monitoring addresses presented on bus 20, and capturing or sampling the related data values presented on bus 20. During bus read operations, the data values are provided by a selected slave device such as memory 18. During bus write operations, the data values are provided by a bus master of bus 20 such as processor 12. As the bus transfers occur, debug circuitry 14 monitors each transfer and selectively captures data values corresponding to data locations the user of debug circuitry 14 wishes to monitor. These values and conditions may be programmed into and transferred from debug circuitry 14 via the terminals shown in FIG. 1 .
Certain limitations in prior art systems are overcome by the current invention. In prior art systems, if a data variable or value is located within cache 13, the data value may be modified with respect to the corresponding value in memory 18, i.e. the latest (most up to date) value is not present in memory 18, but only within cache 13. If debug circuitry 14 accesses memory 18 to obtain the desired variable's value, it will not get a correct copy, since the copy may be modified internally in cache 13.
An instruction is provided in data processing system 10 to allow debug circuitry 14 to “see” a value which may be stored in cache 13. The instruction is herein after referred to as a “data cache block show” instruction and includes an effective address corresponding to the value. The instruction is executed by the processor. It is determined if the effective address results in a “hit” or a “miss” in the cache. When the effective address results in a hit, the value is provided to bus 20 associated with the effective address from the cache 13. Debug circuitry 14 then has access to the value from the bus 20 as it is provided by the processor. In one embodiment, debug circuitry 14 monitors transactions on bus 20, and is capable of sampling the address and associated data values as bus transfers occur. Desired values can then be transferred after sampling to a user of the system performing a debugging operation by means of signals from debug circuitry 14 of FIG. 1 . A state of cache 13 is not modified when the value is placed on the bus 20. In prior art systems, it is not possible to place the value of the data variable on bus 20 from cache 13 when a cache hit occurs, since the cache satisfies the prior art load or store request generated by a normal load or store instruction. This causes an issue for debug circuitry 14, since the value is not made visible on bus 20 for capture. When the effective address results in a miss, one feature of the instruction allows the value to be retrieved from another memory, such as for example, memory 18. If value is retrieved from another memory, the value is placed on bus 20 by the memory during retrieval, allowing access to the value by debug circuitry 14. Note that the value is not then stored in cache 13 as required by normal load and store instruction misses. The value is discarded after being shown on bus 20. By discarding the value and not allocating a replacement cache entry as is done for normal cache misses incurred by normal load and store instructions, the result of executing the data cache block show instruction has minimal effect on the state of the cache, thus simplifying debug of the system, since the debug operation is minimally intrusive. Cache lines are not replaced on misses, and no state changes occur to the status bits, data, or tag information contained in the cache. In addition, regardless of hit or miss outcome, the state of one or more cache line replacement algorithm state variables remain unchanged, such as least recently used status bits, etc.
Typically, some data values are subject to change and are updated in response to executing instructions. In some debugging situations it may be desirable to retrieve the latest version of the value even when resident in the cache. A “dirty bit” is associated with a cache entry indicates whether or not data in the cache associated with the effective address is different (i.e. has been modified) from data stored at another memory location, such as memory 18, corresponding to the effective address. In accordance with the disclosed embodiment, a “dirty bit” associated with the effective address of the value is not modified when the value is retrieved from the cache and presented to the system bus 20 in response to executing the data cache block show instruction. Likewise, cache 13 is not modified if the value associated with the effective address in cache 13 is the same as the value in another memory location, i.e. the data is clean. In other words, even when a dirty bit of the hit cache entry indicates that data stored in the entry is clean, the data stored in the entry is provided to bus 20 and the entry is not modified. When a dirty bit of the hit cache entry indicates that data stored in the entry is dirty, the data stored in the entry is still provided to bus 20, and the entry is not modified, and the dirty bit is not cleared, unlike in prior art cache control instructions. The data cache block show instruction will be discussed in more detail below.
#opt=[miss_fetch_true, signal_TLB_exceptions, size_of_show, mask_data_bkpt, record_status].
Bits [11-15], labeled “RA” and bits [16-20] labeled “RB” are the effective address offset and the effective address base register values, respectively, use to compute the effective address of the data to be made available on bus 20. Bits [21-30] labeled “TBD” are not used for this instruction. Bit [31] indicates the end of the instruction.
The data cache block show instruction is provided to force visibility of a potentially cached location to an agent external to the processor 12, for example, debug circuitry 14 for debug visibility purposes. No data breakpoint event occurs as part of the execution of this instruction if the option bit field #opt[mask_data_bkpt] of bits [6-10] indicates breakpoints should be masked. Normal load and store instructions continue to generate data breakpoint events if so enabled by internal debug circuitry 34 of FIG. 2 . Watchpoint signaling is implementation dependent, and may also be controlled by internal debug circuitry 34 of FIG. 2 to generate watchpoint events when certain effective address matches for a data access occur. If the data block containing the byte addressed by an effective address is in the data cache of this processor and no TLB Miss or Protection violation occurs, the addressed data block is written to a memory higher in the memory hierarchy, such as for example, memory 18. When the instruction is executed, the state of the data block in cache 13 is not altered. The data block is written to bus 20 regardless of whether it is “dirty” or “clean”.
The size of the data block written to bus 20 is determined by the feature #opt[size_of_show], where “size_of_show” is a data block size indicator. The data block “shown” by the instruction may be all of a cache line associated with an effective address or may be less than all of a cache line based on the size indicator. If the data block containing the byte addressed by the effective address is not in cache 13 and the feature #opt[miss_fetch_true] indicates that miss fetching should occur, the addressed block is fetched from another memory of the system, such as memory 18, to be made visible on bus 20 for capture by debug circuitry 14, and is discarded by processor 12. Otherwise, if #opt[miss_fetch_true] indicates no miss fetching is to occur, then the instruction is treated as a NOP (no operation) if a miss occurs and no data is provided to bus 20.
If #opt[signal_TLB_exceptions] is set as true, then the effective address is translated to a physical address by TLB 35 and the physical address used to determine if the effective address results in a hit or a miss. If a TLB Miss or TLB Protection violation occurs, it is signaled within processor 12, and exception processing is initiated to deal with the generated error condition. Conversely, if #opt[signal_TLB_exceptions] is set as false, TLB Miss and TLB Protection violations are ignored, and the instruction is treated as a NOP of one if these conditions is encountered, and no exception is taken. If TLB errors, bus errors, or other errors occur as part of the execution of this instruction, the errors are signaled via a status bit in the control register 37 if #opt[record_status] is set.
The feature #opt[signal_TLB_exceptions] can be used with other instructions besides the data cache block show instruction. When #opt[signal_TLB_exceptions] is set true, a effective address associated with an instruction is provided to TLB 35. When the effective address results in a miss in the TLB 35, an exception is taken based on the whether #opt[signal_TLB_exceptions] is set true or false. When the effective address results in a hit in TLB 35, a translated address is provided from TLB 35 for the effective address. When the effective address results in a miss in TLB 35 and the #opt[signal_TLB_exceptions] is set true, execution of the instruction will result in a TLB Miss exception being signaled, and appropriate exception processing activity is initiated by processor 12. When the effective address results in a miss in TLB 35 and the #opt[signal_TLB_exceptions] is set false, execution of the instruction will not result in a TLB Miss exception being signaled, and instead, a no-operation, or other default result will be processed by processor 12. In this manner, an instruction specifier can be used to condition whether a normally generated TLB exception condition will result in exception processing or will result in a default result being provided, such as a no-operation.
Note that the function of the data cache block show instruction is independent of whether the data block containing the byte addressed by an effective address is characterized as “write through required” or “caching inhibited”. In either case, the execution of the data cache block show instruction causes the data value to be made visible on bus 20 for sampling or capture by debug circuitry 14, without affecting the state of the cache. It should be apparent now, that using the data cache block show instruction of the current invention causes the latest data value associated with a memory location to be made visible on the system bus for sampling or capture by debug circuitry, regardless of whether the associated memory location is resident or not in the cache, and if resident, regardless of the clean or dirty status of the data, and in the process of making the value visible, no current cache state, data, tag, or status is altered. Such control results in greatly improved ability to debug a system.
In the foregoing specification, the invention has been described with reference to specific embodiments. However, one of ordinary skill in the art appreciates that various modifications and changes can be made without departing from the scope of the present invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of present invention.
Benefits, other advantages, and solutions to problems have been described above with regard to specific embodiments. However, the benefits, advantages, solutions to problems, and any element(s) that may cause any benefit, advantage, or solution to occur or become more pronounced are not to be construed as a critical, required, or essential feature or element of any or all the claims. The terms a or an, as used herein, are defined as one or more than one. The terms including and/or having, as used herein, are defined as comprising (i.e., open language). As used herein, the terms “comprises,” “comprising,” or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Claims (26)
1. A method for operating a processor coupled to a system bus and having a cache, comprising:
receiving an instruction which indicates an effective address and provides a breakpoint disable indicator; and executing the instruction, wherein executing the instruction comprises:
selectively disabling data breakpoints during execution of the instruction based on the breakpoint disable indicator;
determining if the effective address results in a hit or a miss in the cache; and
when the effective address results in a hit, providing data associated with the effective address from the cache to the system bus without modifying a state of the cache; and
when the effective address results in a miss, selectively providing data associated with the effective address from a memory to the system bus based on a fetch indicator provided by the instruction, wherein when the data associated with the effective address is provided from the memory to the system bus, the data associated with the effective address is not stored in the cache.
2. The method of claim 1 , wherein executing the instruction further comprises:
when the effective address results in a miss, selectively providing data associated with the effective address from a memory to the system bus, wherein when the data associated with the effective address is provided from the memory to the system bus, the data associated with the effective address is not stored in the cache.
3. The method of claim 2 , wherein when the effective address results in a miss, selectively providing data associated with the effective address from the memory to the system bus based on a fetch indicator provided by the instruction.
4. The method of claim 3 1, wherein when the fetch indicator indicates fetching and when the effective address results in a miss, data associated with the effective address is provided from the memory to the system bus.
5. The method of claim 4 , wherein when the fetch indicator indicates no fetching and when the effective address results in a miss, data associated with the effective address is not provided from the memory to the system bus.
6. The method of claim 1 , wherein when the effective address results in a hit, providing the data associated with the effective address from the cache to the bus without modifying the state of the cache comprises:
providing the data associated with the effective address from the cache to the bus without modifying a dirty bit in the cache associated with the effective address, the dirty bit indicating whether or not the data associated with the effective address stored in the cache is different from data stored at a memory location in the memory corresponding to the effective address.
7. The method of claim 1 , wherein when the effective address results in a hit, the data associated with the effective address that is provided from the cache to the system bus has a same value as data stored at a memory location in the memory corresponding to the effective address.
8. The method of claim 1 , wherein receiving the instruction which indicates the effective address comprises receiving the instruction from debug circuitry coupled to the system bus.
9. The method of claim 1 , wherein the instruction provides a size indicator, and wherein the data associated with effective address provided from the cache to the system bus comprises all of a cache line associated with the effective address or less than all of the cache line associated with the effective address, based on the size indicator.
10. The method of claim 1 , wherein executing the instruction further comprises:
translating the effective address to a translated address using a translation look-aside buffer (TLB), wherein determining if the effective address results in a hit or a miss in the cache comprises using the translated address to determine if the effective address results in a hit or a miss.
11. The method of claim 10 , wherein the instruction provides a TLB exception indicator which indicates whether or not an exception is to be taken if the effective address results in a miss in the TLB.
12. The method of claim 1 , wherein the instruction provides an error update indicator, and wherein the executing the instruction further comprises:
based on the error update indicator, selectively updating a field in a condition register of the processor in response to an error occurring during execution of the instruction.
13. A method for operating a processor coupled to a system bus and having a cache, comprising:
receiving an instruction which indicates an effective address, the instruction including a size indicator;
determining that the effective address results in a hit in the cache, wherein determining comprises identifying a hit entry in the cache associated with the effective address; and
when a dirty bit of the hit entry indicates that data stored in the hit entry is clean, providing at least a portion of the data stored in the hit entry from the cache to the system bus, wherein a size of the at least a portion of the data is determined based on the size indicator.
14. The method of claim 13 , when the dirty bit of the hit entry indicates that the data stored in the hit entry is clean, the data stored in the hit entry of the cache is unmodified with respect to data stored at a memory location in a memory coupled to the system bus, the memory location corresponding to the effective address.
15. The method of claim 13 , further comprising:
when the dirty bit of the hit entry indicates that data stored in the hit entry is dirty, providing at least a portion of the data associated with the effective address from the cache to the system bus.
16. The method of claim 15 , wherein the at least a portion of the data associated with the effective address stored in the hit entry is provided from the cache to the system bus without modifying the dirty bit of the hit entry.
17. The method of claim 13 , when the dirty bit of the hit entry indicates that data stored in the hit entry is clean, the at least a portion of the data stored in the hit entry is provided from the cache to the system bus without modifying the dirty bit of the hit entry.
18. A method for operating a processor having a table look-aside buffer (TLB), the method comprising:
receiving an instruction which indicates an effective address and which includes a TLB exception indicator;
providing the effective address to the TLB;
when the effective address results in a miss in the TLB, selectively taking an exception based on the TLB exception indicator; and
when the effective address results in a hit in the TLB, providing a translated address from the TLB corresponding to the effective address.
19. The method of claim 18 , wherein when the effective address results in a miss in the TLB and the exception is taken based on the TLB exception indicator, the method further comprises processing the exception to provide a translated address corresponding to the effective address.
20. The method of claim 19 , wherein when the effective address results in a miss in the TLB and the exception is not taken based on the TLB exception indicator, the method further comprises treating the instruction as a no-operation (NOP) instruction.
21. The method of claim 19 , wherein when the effective address results in a miss in the TLB and the exception is not taken based on the TLB exception indicator, no translated address is provided for the effective address in response to the instruction.
22. A data processing system comprising:
a processor having a cache, the processor coupled to receive and execute instructions from debug circuitry, the cache comprising:
a cache array storing a plurality of cache entries; and
cache control circuitry coupled to the cache array, the cache control circuitry determining if an effective address indicated by an instruction received from the debug circuitry results in a hit or a miss in the cache array, and
wherein:
when the effective address results in a hit, the cache control circuitry enables the cache array to provide data associated with the effective address to a system bus coupled to the processor and the debug circuitry, without modifying a state of the cache array, and
when the effective address results in a miss, the processor selectively enables a fetch of the data associated with the effective address from a memory coupled to the system bus, wherein when the processor enables the fetch of the data associated with the effective address from the memory to the system bus, the data associated with the effective address is not stored in the cache array.
23. A method for operating a processor coupled to a system bus and having a cache comprising:
receiving an instruction which indicates an effective address and provides a TLB (table look-aside buffer) exception indicator that indicates whether or not an exception is to be taken if the effective address results in a miss in a TLB: and
executing the instruction, wherein executing the instruction comprises:
determining if the effective address results in a hit or a miss in the cache;
translating the effective address to a translated address using the TLB, wherein determining if the effective address results in a hit or a miss in the cache comprises using the translated address to determine if the effective address results in a hit or a miss; and
when the effective address results in a hit, providing data associated with the effective address from the cache to the system bus without modifying a state of the cache.
24. A method for operating a processor coupled to a system bus and having a cache;
receiving an instruction which indicates an effective address and provides a size indicator and an error update indicator; and
executing the instruction, wherein executing the instruction comprises:
determining if the effective address results in a hit or a miss in the cache;
when the effective address results in a hit, providing data associated with the effective address from the cache to the system bus without modifying a state of the cache, wherein a size of the data provided is determined based on the size indicator; and
based on the error update indicator, selectively updating a field in a condition register of the processor in response to an error occurring during execution of the instruction.
25. A method for operating a processor coupled to a system bus and having a cache, comprising:
receiving an instruction from debug circuitry which indicates an effective address; and
executing the instruction, wherein executing the instruction comprises:
determining if the effective address results in a hit or a miss in the cache; and
when the effective address results in a hit, providing data associated with the effective address from the cache to the system bus without modifying a state of the cache; and
when the effective address results in a miss, selectively enabling, by the processor, a fetch of the data associated with the effective address from a memory coupled to the system bus, wherein the fetched data associated with the effective address is not stored in the cache.
26. A method for operating a processor coupled to a system bus and having a cache, comprising:
receiving an instruction which indicates an effective address and provides a TLB (table look-aside buffer) exception indicator; and
executing the instruction, wherein executing the instruction comprises:
determining if the effective address results in a hit or a miss in the TLB; and
when the effective address results in a miss, selectively taking an exception based on the TLB exception indicator, and
when the effective address results in a hit in the TLB, providing a translated address from the TLB corresponding to the effective address.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/172,508 USRE47851E1 (en) | 2006-09-28 | 2011-06-29 | Data processing system having cache memory debugging support and method therefor |
US16/739,560 USRE49305E1 (en) | 2006-09-28 | 2020-01-10 | Data processing system having cache memory debugging support and method therefor |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US11/536,085 US7555605B2 (en) | 2006-09-28 | 2006-09-28 | Data processing system having cache memory debugging support and method therefor |
US13/172,508 USRE47851E1 (en) | 2006-09-28 | 2011-06-29 | Data processing system having cache memory debugging support and method therefor |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/536,085 Reissue US7555605B2 (en) | 2006-09-28 | 2006-09-28 | Data processing system having cache memory debugging support and method therefor |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/536,085 Continuation US7555605B2 (en) | 2006-09-28 | 2006-09-28 | Data processing system having cache memory debugging support and method therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
USRE47851E1 true USRE47851E1 (en) | 2020-02-11 |
Family
ID=39262339
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/536,085 Ceased US7555605B2 (en) | 2006-09-28 | 2006-09-28 | Data processing system having cache memory debugging support and method therefor |
US13/172,508 Active 2027-07-31 USRE47851E1 (en) | 2006-09-28 | 2011-06-29 | Data processing system having cache memory debugging support and method therefor |
US16/739,560 Active 2027-07-31 USRE49305E1 (en) | 2006-09-28 | 2020-01-10 | Data processing system having cache memory debugging support and method therefor |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/536,085 Ceased US7555605B2 (en) | 2006-09-28 | 2006-09-28 | Data processing system having cache memory debugging support and method therefor |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/739,560 Active 2027-07-31 USRE49305E1 (en) | 2006-09-28 | 2020-01-10 | Data processing system having cache memory debugging support and method therefor |
Country Status (4)
Country | Link |
---|---|
US (3) | US7555605B2 (en) |
EP (1) | EP2074510A4 (en) |
JP (1) | JP2010505195A (en) |
WO (1) | WO2008042494A2 (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8972671B2 (en) * | 2007-05-14 | 2015-03-03 | Freescale Semiconductor, Inc. | Method and apparatus for cache transactions in a data processing system |
US20090006753A1 (en) * | 2007-06-28 | 2009-01-01 | David Arnold Luick | Design structure for accessing a cache with an effective address |
US7937530B2 (en) * | 2007-06-28 | 2011-05-03 | International Business Machines Corporation | Method and apparatus for accessing a cache with an effective address |
US20090006754A1 (en) * | 2007-06-28 | 2009-01-01 | Luick David A | Design structure for l2 cache/nest address translation |
US20090006803A1 (en) * | 2007-06-28 | 2009-01-01 | David Arnold Luick | L2 Cache/Nest Address Translation |
US8495287B2 (en) | 2010-06-24 | 2013-07-23 | International Business Machines Corporation | Clock-based debugging for embedded dynamic random access memory element in a processor core |
WO2013048493A1 (en) | 2011-09-30 | 2013-04-04 | Intel Corporation | Memory channel that supports near memory and far memory access |
EP2761467B1 (en) | 2011-09-30 | 2019-10-23 | Intel Corporation | Generation of far memory access signals based on usage statistic tracking |
CN103946812B (en) | 2011-09-30 | 2017-06-09 | 英特尔公司 | Apparatus and method for realizing multi-level memory hierarchy |
EP2761480A4 (en) | 2011-09-30 | 2015-06-24 | Intel Corp | Apparatus and method for implementing a multi-level memory hierarchy over common memory channels |
CN107608910B (en) | 2011-09-30 | 2021-07-02 | 英特尔公司 | Apparatus and method for implementing a multi-level memory hierarchy with different operating modes |
US10372590B2 (en) * | 2013-11-22 | 2019-08-06 | International Business Corporation | Determining instruction execution history in a debugger |
US10268558B2 (en) * | 2017-01-13 | 2019-04-23 | Microsoft Technology Licensing, Llc | Efficient breakpoint detection via caches |
US11740993B2 (en) | 2021-08-31 | 2023-08-29 | Apple Inc. | Debug trace of cache memory requests |
Citations (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4635193A (en) * | 1984-06-27 | 1987-01-06 | Motorola, Inc. | Data processor having selective breakpoint capability with minimal overhead |
US5185878A (en) * | 1988-01-20 | 1993-02-09 | Advanced Micro Device, Inc. | Programmable cache memory as well as system incorporating same and method of operating programmable cache memory |
JPH05289904A (en) * | 1992-04-09 | 1993-11-05 | Nec Corp | Debugging tool for cache memory |
EP0569987A1 (en) * | 1992-05-13 | 1993-11-18 | Nec Corporation | Microprocessor incorporating cache memory enabling efficient debugging |
US5313608A (en) * | 1990-02-27 | 1994-05-17 | Kabushiki Kaisha Toshiba | Microprocessor with cache memory for supporting debugging operations |
US5317711A (en) * | 1991-06-14 | 1994-05-31 | Integrated Device Technology, Inc. | Structure and method for monitoring an internal cache |
US5491793A (en) * | 1992-07-31 | 1996-02-13 | Fujitsu Limited | Debug support in a processor chip |
US5636363A (en) | 1991-06-14 | 1997-06-03 | Integrated Device Technology, Inc. | Hardware control structure and method for off-chip monitoring entries of an on-chip cache |
US5892897A (en) * | 1997-02-05 | 1999-04-06 | Motorola, Inc. | Method and apparatus for microprocessor debugging |
US6016555A (en) * | 1997-11-19 | 2000-01-18 | Texas Instruments Incorporated | Non-intrusive software breakpoints in a processor instruction execution pipeline |
US6044478A (en) | 1997-05-30 | 2000-03-28 | National Semiconductor Corporation | Cache with finely granular locked-down regions |
US6145099A (en) * | 1996-08-13 | 2000-11-07 | Nec Corporation | Debugging system |
US6260131B1 (en) * | 1997-11-18 | 2001-07-10 | Intrinsity, Inc. | Method and apparatus for TLB memory ordering |
US6321329B1 (en) * | 1999-05-19 | 2001-11-20 | Arm Limited | Executing debug instructions |
US20020013893A1 (en) * | 1998-04-22 | 2002-01-31 | Transwitch Corporation | Real time debugger interface for embedded systems |
US6502209B1 (en) * | 1998-05-13 | 2002-12-31 | Axis Ab | Chip with debug capability |
EP1286269A2 (en) * | 1992-02-28 | 2003-02-26 | Motorola, Inc. | A data processor having a cache memory |
US20030191624A1 (en) * | 2002-03-08 | 2003-10-09 | Seiko Epson Corporation | Debug function built-in type microcomputer |
US6668339B1 (en) * | 1999-07-28 | 2003-12-23 | Mitsubishi Denki Kabushiki Kaisha | Microprocessor having a debug interruption function |
US20040193831A1 (en) * | 2003-03-25 | 2004-09-30 | Moyer William C. | Memory management in a data processing system |
US20040236911A1 (en) * | 2003-05-21 | 2004-11-25 | Moyer William C. | Read access and storage circuitry read allocation applicable to a cache |
US20050273559A1 (en) * | 2004-05-19 | 2005-12-08 | Aris Aristodemou | Microprocessor architecture including unified cache debug unit |
US20060206763A1 (en) * | 2005-03-09 | 2006-09-14 | Seiko Epson Corporation | Debugging system, semiconductor integrated circuit device, microcomputer, and electronic apparatus |
US20060271919A1 (en) * | 2005-05-27 | 2006-11-30 | Moyer William C | Translation information retrieval |
US20070006042A1 (en) * | 2005-06-30 | 2007-01-04 | International Business Machines Corporation | Software debug support for cache flush with access to external data location(s) through debug port |
US7346744B1 (en) * | 2002-11-04 | 2008-03-18 | Newisys, Inc. | Methods and apparatus for maintaining remote cluster state information |
US7533302B2 (en) * | 2004-11-15 | 2009-05-12 | Sunplus Technology Co., Ltd. | Trace and debug method and system for a processor |
US8352713B2 (en) * | 2006-08-09 | 2013-01-08 | Qualcomm Incorporated | Debug circuit comparing processor instruction set operating mode |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5341500A (en) * | 1991-04-02 | 1994-08-23 | Motorola, Inc. | Data processor with combined static and dynamic masking of operand for breakpoint operation |
JPH05265799A (en) * | 1992-03-19 | 1993-10-15 | Fujitsu Ltd | Data processor |
US5732405A (en) * | 1992-10-02 | 1998-03-24 | Motorola, Inc. | Method and apparatus for performing a cache operation in a data processing system |
JPH1115691A (en) * | 1997-06-27 | 1999-01-22 | Matsushita Electric Ind Co Ltd | Processor and debugging device |
US6532553B1 (en) * | 1998-12-08 | 2003-03-11 | Arm Limited | Debugging data processing systems |
EP1182566B1 (en) * | 2000-08-21 | 2013-05-15 | Texas Instruments France | Cache operation based on range of addresses |
US6968446B1 (en) * | 2001-08-09 | 2005-11-22 | Advanced Micro Devices, Inc. | Flags handling for system call instructions |
US6862694B1 (en) * | 2001-10-05 | 2005-03-01 | Hewlett-Packard Development Company, L.P. | System and method for setting and executing breakpoints |
US7168067B2 (en) * | 2002-02-08 | 2007-01-23 | Agere Systems Inc. | Multiprocessor system with cache-based software breakpoints |
US7010672B2 (en) * | 2002-12-11 | 2006-03-07 | Infineon Technologies Ag | Digital processor with programmable breakpoint/watchpoint trigger generation circuit |
US7039765B1 (en) * | 2002-12-19 | 2006-05-02 | Hewlett-Packard Development Company, L.P. | Techniques for cache memory management using read and write operations |
US7434108B2 (en) * | 2004-04-30 | 2008-10-07 | Freescale Semiconductor, Inc. | Masking within a data processing system having applicability for a development interface |
JP2006155098A (en) * | 2004-11-26 | 2006-06-15 | Sanyo Electric Co Ltd | Method and system for evaluating microcomputer, and microcomputer |
US20060143396A1 (en) * | 2004-12-29 | 2006-06-29 | Mason Cabot | Method for programmer-controlled cache line eviction policy |
US7840845B2 (en) * | 2005-02-18 | 2010-11-23 | Intel Corporation | Method and system for setting a breakpoint |
US7254678B2 (en) * | 2005-03-17 | 2007-08-07 | International Business Machines Corporation | Enhanced STCX design to improve subsequent load efficiency |
US7552283B2 (en) * | 2006-01-20 | 2009-06-23 | Qualcomm Incorporated | Efficient memory hierarchy management |
-
2006
- 2006-09-28 US US11/536,085 patent/US7555605B2/en not_active Ceased
-
2007
- 2007-07-19 EP EP07840437A patent/EP2074510A4/en not_active Withdrawn
- 2007-07-19 WO PCT/US2007/073833 patent/WO2008042494A2/en active Application Filing
- 2007-07-19 JP JP2009530492A patent/JP2010505195A/en active Pending
-
2011
- 2011-06-29 US US13/172,508 patent/USRE47851E1/en active Active
-
2020
- 2020-01-10 US US16/739,560 patent/USRE49305E1/en active Active
Patent Citations (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4635193A (en) * | 1984-06-27 | 1987-01-06 | Motorola, Inc. | Data processor having selective breakpoint capability with minimal overhead |
US5185878A (en) * | 1988-01-20 | 1993-02-09 | Advanced Micro Device, Inc. | Programmable cache memory as well as system incorporating same and method of operating programmable cache memory |
US5313608A (en) * | 1990-02-27 | 1994-05-17 | Kabushiki Kaisha Toshiba | Microprocessor with cache memory for supporting debugging operations |
US5317711A (en) * | 1991-06-14 | 1994-05-31 | Integrated Device Technology, Inc. | Structure and method for monitoring an internal cache |
US5636363A (en) | 1991-06-14 | 1997-06-03 | Integrated Device Technology, Inc. | Hardware control structure and method for off-chip monitoring entries of an on-chip cache |
EP1286269A2 (en) * | 1992-02-28 | 2003-02-26 | Motorola, Inc. | A data processor having a cache memory |
JPH05289904A (en) * | 1992-04-09 | 1993-11-05 | Nec Corp | Debugging tool for cache memory |
EP0569987A1 (en) * | 1992-05-13 | 1993-11-18 | Nec Corporation | Microprocessor incorporating cache memory enabling efficient debugging |
US5491793A (en) * | 1992-07-31 | 1996-02-13 | Fujitsu Limited | Debug support in a processor chip |
US6145099A (en) * | 1996-08-13 | 2000-11-07 | Nec Corporation | Debugging system |
US5892897A (en) * | 1997-02-05 | 1999-04-06 | Motorola, Inc. | Method and apparatus for microprocessor debugging |
US6044478A (en) | 1997-05-30 | 2000-03-28 | National Semiconductor Corporation | Cache with finely granular locked-down regions |
US6260131B1 (en) * | 1997-11-18 | 2001-07-10 | Intrinsity, Inc. | Method and apparatus for TLB memory ordering |
US6016555A (en) * | 1997-11-19 | 2000-01-18 | Texas Instruments Incorporated | Non-intrusive software breakpoints in a processor instruction execution pipeline |
US20020013893A1 (en) * | 1998-04-22 | 2002-01-31 | Transwitch Corporation | Real time debugger interface for embedded systems |
US6502209B1 (en) * | 1998-05-13 | 2002-12-31 | Axis Ab | Chip with debug capability |
US6321329B1 (en) * | 1999-05-19 | 2001-11-20 | Arm Limited | Executing debug instructions |
US6668339B1 (en) * | 1999-07-28 | 2003-12-23 | Mitsubishi Denki Kabushiki Kaisha | Microprocessor having a debug interruption function |
US20030191624A1 (en) * | 2002-03-08 | 2003-10-09 | Seiko Epson Corporation | Debug function built-in type microcomputer |
US7346744B1 (en) * | 2002-11-04 | 2008-03-18 | Newisys, Inc. | Methods and apparatus for maintaining remote cluster state information |
US20040193831A1 (en) * | 2003-03-25 | 2004-09-30 | Moyer William C. | Memory management in a data processing system |
US6954826B2 (en) | 2003-05-21 | 2005-10-11 | Freescale Semiconductor, Inc. | Read access and storage circuitry read allocation applicable to a cache |
US20040236911A1 (en) * | 2003-05-21 | 2004-11-25 | Moyer William C. | Read access and storage circuitry read allocation applicable to a cache |
US20050273559A1 (en) * | 2004-05-19 | 2005-12-08 | Aris Aristodemou | Microprocessor architecture including unified cache debug unit |
US7533302B2 (en) * | 2004-11-15 | 2009-05-12 | Sunplus Technology Co., Ltd. | Trace and debug method and system for a processor |
US20060206763A1 (en) * | 2005-03-09 | 2006-09-14 | Seiko Epson Corporation | Debugging system, semiconductor integrated circuit device, microcomputer, and electronic apparatus |
US20060271919A1 (en) * | 2005-05-27 | 2006-11-30 | Moyer William C | Translation information retrieval |
US20070006042A1 (en) * | 2005-06-30 | 2007-01-04 | International Business Machines Corporation | Software debug support for cache flush with access to external data location(s) through debug port |
US8352713B2 (en) * | 2006-08-09 | 2013-01-08 | Qualcomm Incorporated | Debug circuit comparing processor instruction set operating mode |
Also Published As
Publication number | Publication date |
---|---|
USRE49305E1 (en) | 2022-11-22 |
WO2008042494A3 (en) | 2008-11-27 |
US20080082720A1 (en) | 2008-04-03 |
EP2074510A4 (en) | 2012-06-13 |
JP2010505195A (en) | 2010-02-18 |
EP2074510A2 (en) | 2009-07-01 |
WO2008042494A2 (en) | 2008-04-10 |
US7555605B2 (en) | 2009-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE49305E1 (en) | Data processing system having cache memory debugging support and method therefor | |
US8972671B2 (en) | Method and apparatus for cache transactions in a data processing system | |
US8688910B2 (en) | Debug control for snoop operations in a multiprocessor system and method thereof | |
US8731688B2 (en) | Processing apparatus and method for acquiring log information | |
US8370687B2 (en) | Mechanism for storing and extracting trace information using internal memory in micro controllers | |
US7340564B2 (en) | Tracing instruction flow in an integrated processor | |
US7051239B2 (en) | Method and apparatus for efficiently implementing trace and/or logic analysis mechanisms on a processor chip | |
US8201025B2 (en) | Debug messaging with selective timestamp control | |
US7447946B2 (en) | Storage of trace data within a data processing apparatus | |
US8145874B2 (en) | System and method of data forwarding within an execution unit | |
US7237149B2 (en) | Method and apparatus for qualifying debug operation using source information | |
US7506205B2 (en) | Debugging system and method for use with software breakpoint | |
US20060174163A1 (en) | Software breakpoints for use with memory devices | |
EP0636973A2 (en) | Processor interface chip for dual-microprocessor processor system | |
US20060271759A1 (en) | Translation information retrieval | |
US20080065810A1 (en) | Assisted trace facility to improve cpu cache performance | |
US8438547B2 (en) | Address translation trace message generation for debug | |
US8200908B2 (en) | Method for debugger initiated coherency transactions using a shared coherency manager | |
GB2451668A (en) | Error correction in a set associative cache | |
US6795937B2 (en) | Multiple traps after faulty access to a resource | |
US5938777A (en) | Cycle list based bus cycle resolution checking in a bus bridge verification system | |
US20080141002A1 (en) | Instruction pipeline monitoring device and method thereof | |
US20080140993A1 (en) | Fetch engine monitoring device and method thereof | |
JP2780555B2 (en) | Microprocessor with built-in cache memory | |
US8027829B2 (en) | System and method for integrated circuit emulation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 12TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1553); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 12 |