US6609247B1 - Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field - Google Patents

Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field Download PDF

Info

Publication number
US6609247B1
US6609247B1 US09/506,774 US50677400A US6609247B1 US 6609247 B1 US6609247 B1 US 6609247B1 US 50677400 A US50677400 A US 50677400A US 6609247 B1 US6609247 B1 US 6609247B1
Authority
US
United States
Prior art keywords
etb
information
instructions
mode
instruction
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.)
Expired - Lifetime
Application number
US09/506,774
Inventor
Anuj Dua
Russell Clarence Brockmann
Susith Rohana Fernando
Kevin David Safford
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Intel Corp
Hewlett Packard Development Co LP
Original Assignee
Hewlett Packard Development Co LP
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hewlett Packard Development Co LP filed Critical Hewlett Packard Development Co LP
Priority to US09/506,774 priority Critical patent/US6609247B1/en
Assigned to HEWLETT-PACKARD COMPANY, INTEL CORPORATION reassignment HEWLETT-PACKARD COMPANY ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: FERNANDO, M A SUSITH ROHANA, BROCKMANN, RUSSELL C., SAFFORD, KEVIN DAVID, DUA, ANUJ
Priority to JP2001041238A priority patent/JP2001236245A/en
Application granted granted Critical
Publication of US6609247B1 publication Critical patent/US6609247B1/en
Assigned to HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. reassignment HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HEWLETT-PACKARD COMPANY
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program

Definitions

  • the technical field relates to digital computer systems debugging. More particularly, it relates to methods and an apparatus for debugging IA-32 systems running on an IA-64 CPU.
  • CPUs central processing units
  • branch trace messages send out a special signature (e.g., source, destination address of branch) on the processor bus.
  • One debugging technique uses “breakpoints” that cause the CPU to respond in a certain specified way when a certain instruction is executed. In order to gather information about the architectural state of the machine using a breakpoint, it is necessary to stop the machine at the breakpoint. While some techniques like “Sample-on-the-Fly” allow a portion of the machine state to be sampled while a program executes, the information recorded is overwritten in each new cycle, giving no temporal information about the execution history.
  • Scan methods have been employed to interrogate the internal state of the machine by stopping the CPU for a clock cycle, scanning the processor state, and sending it to a system-visible entity such as a processor bus or register.
  • the CPU is clocked for a cycle, new state information gathered and the process repeats.
  • debug techniques require stopping the program, reading all of the information, and then continuing the program.
  • some debug techniques require some knowledge about the failing condition.
  • the breakpoint technique requires identifying a breakpoint in the vicinity of the suspected problem (for example, a range of instruction addresses) and examining the CPU state when the machine halts at the breakpoint. This is largely a process of trial and error—making an educated guess regarding the location of the breakpoint, re-executing certain instructions, and determining whether the error exists. Sometimes the very act of setting up a breakpoint may perturb the machine state enough such that the error is masked.
  • What is needed is a better way of accessing the execution history.
  • what is needed is a non-intrusive means of gathering instruction information as the instructions execute without stopping the machine to set a breakpoint or to scan particular nodes.
  • a method for creating a trace of emulated instructions from an emulated instruction set when running on hardware optimized for a different instruction set, such as IA-32 instructions running on an IA-64 machine is described.
  • An execution trace buffer is created that maintains desired information about instructions as they are executed and retired.
  • a system may be configured such that certain desired information helpful to debugging the system may be written to the buffer as the instructions are retired. This information may include the addresses of sequential or branch instructions, or other relevant information that can be gathered continuously and non-intrusively as instructions are executed. The information may be read from the buffer and output in a machine-visible form at the user's convenience.
  • a computer system capable of creating an easily readable execution history by using an execution trace buffer.
  • the execution trace buffer maintains certain information about instructions as they are executed and retired.
  • the computer system may be configured such that certain desired information helpful to debugging the system may be written to the buffer as the instructions are retired. This information may include the addresses of sequential or branch instructions, or other relevant information that can be gathered continuously and non-intrusively as instructions are executed. The information may be read from the buffer and output in a machine-visible form at the user's convenience.
  • FIG. 1 is a block diagram of the system hardware.
  • FIG. 2 is a flow chart showing a new method.
  • FIG. 3A is a diagram showing a form of the ETB entry when operating in either Retired Macroinstruction Trace mode or Retired Macro-Branch Trace mode.
  • FIG. 3B is a diagram showing a form of the ETB entry when operating in either Retired Microinstruction Trace mode or Retired First Micro-ips of New Flows Trace mode.
  • FIG. 4 is an example diagram showing part of the logic circuitry used to write information to the ETB.
  • a method and apparatus are described for re-creating a trace of instructions from an emulated instruction set when running on hardware optimized for a different instruction set by using an “execution trace buffer” (ETB) 40 .
  • ETB execution trace buffer
  • the method is explained in the context of IA-32 programs running on an IA-64 CPU.
  • All references to x86 and IA-32 are intended to refer generally to any sort of emulated instruction set architecture (ISA).
  • ISA emulated instruction set architecture
  • IA-64 architecture are intended to refer generally to any sort of native ISA. Because the x86 architecture is designed to execute instructions from the IA-32 instruction set, those terms are used interchangeably.
  • the ETB 40 captures x86 instruction execution history. Unlike most existing methods, the history is obtained non-intrusively. In operation, the ETB 40 gathers preselected data about instructions as they execute, regardless of whether any error occurs. Unlike existing methods, the present invention gathers instruction data “on the fly,” without halting the operation of the program. Then, when an error does occur, the user can access the ETB 40 to read the series of instructions executed immediately before the error occurred. The ETB 40 provides a window into the execution history of the x86 engine 20 , displaying the most recently executed instructions whenever the user needs them. The operator debugging the system—either the hardware or the software—can simply issue a set of instructions to read the ETB 40 to determine which instructions issued immediately prior to a problem.
  • the system also operates in multiple, pre-selectable modes, depending upon the instruction information desired.
  • the system also gathers information about both macroinstructions and microinstructions.
  • the system also allows the user to customize the information retrieved.
  • the IA-64 instruction set is a combination of the enhanced mode (EM) and IA-32 instruction sets.
  • the EM instruction set defines a set of fixed-length 64-bit instructions that execute on native EM hardware.
  • the IA-32 instruction set includes variable-length instructions. These variable-length IA-32 instructions are also referred to as “macroinstructions.”
  • the macroinstructions are decomposed by the x86 engine 20 into native EM instructions, which are also referred to as “microinstructions” when operating in x86/IA-32 mode.
  • the execution of each IA-32 instruction is achieved by executing a series of EM microinstructions.
  • the ETB 40 provides a means of tracing the execution history of either microinstructions or macroinstructions.
  • FIG. 1 shows a computer system 10 , having an x86 engine 20 and an ETB 40 .
  • the function of the x86 engine 20 can be broadly broken down into four distinct stages the fetch stage 22 , the decode stage 24 , the execute stage 26 , and the retire stage 28 .
  • the ETB 40 has 32 entries, numbered 0 through 31.
  • a generic entry 42 also referred to as “slot x,” is indicated on FIG. 1 for further description.
  • the retire stage 28 of the x86 engine 20 writes certain, predetermined information to the ETB 40 .
  • the ETB 40 has a pointer 50 which indexes one of the 32 possible ETB entries, e.g. 42 .
  • the ETB 40 is treated as a model-specific register (MSR), each slot of which can be written to or read from, depending on the position of the ETB pointer 50 .
  • MSR model-specific register
  • the pointer 50 may be initialized to point to entry 0 at reset. It increments after each write and eventually wraps around from 31 back to 0 in a circular fashion.
  • FIG. 1 also shows that the ETB 40 may be read into a machine-visible general purpose register 70 using techniques known to those skilled in the art.
  • the ETB 40 can be read onto a result bus 60 .
  • the result bus 60 can be used to transport control and debug register information to various parts of the CPU 10 .
  • debug mode when a read operation is issued to the ETB 40 , the entry pointed to by the ETB pointer 50 is read into the specified target general-purpose register 70 , and the ETB pointer 50 is advanced.
  • the execution history captured on the ETB 40 can be made externally visible.
  • FIG. 2 shows a flow chart of the method.
  • a mode of operation is selected 210 to determine which type of information will be collected in the ETB 40 .
  • the desired information is written 220 to the ETB 40 as the instructions retire.
  • the ETB 40 continues to collect the information until the user enters debug mode 222 .
  • the user can read 230 the entries on the ETB 40 by issuing a short loop of read instructions.
  • the information is then read 230 onto the result bus 60 and output 240 to a general purpose register 70 , where it can be analyzed.
  • the ETB 40 can continue to be read until all of its entries have been read 242 and the read loop is done 244 .
  • the information written to the ETB 40 depends upon the preselected mode of operation.
  • the ETB 40 may be configured to retrieve any sort of information from instructions retiring in the x86 engine 20 , two types of such information include macroinstruction information and microinstruction information. Within both of these broad categories, the ETB 40 may operate in two sub-modes, depending upon whether all information is requested or just that information relating to a change in program flow. The ETB 40 , then, has four main modes of operation classified by the four forms of execution history information traced.
  • the Virtual 32-bit address (also called a virtual instruction pointer (VIP)) of all successfully retired IA-32 instructions is saved on the ETB 40 .
  • the virtual address is an offset from the base of the code segment.
  • the code segment base address in the code segment descriptor and the VIP information from the ETB 40 can provide the linear addresses of all IA-32 instructions executed, when used in this mode.
  • FIG. 3A shows the form of an ETB entry, e.g. 42 , in this retired macroinstruction trace mode. In the embodiment shown, this mode has been numbered mode 10. In the embodiment shown in FIGS. 3A through 3B, the ETB entries are 36-bits wide. In retired macroinstruction trace mode, the entry includes 32 bits of the IA-32 instruction address, a two-bit type entry, a one-bit valid entry, and a one-bit tagged address. The size of the register entry can, of course, be changed to incorporate additional information used in the operation of the system if desired.
  • the type entry uses 00 to represent a code segment descriptor base address, 01 to represent a target address of a branch instruction, 10 to represent a default or sequential address, and 11 is undefined.
  • the tag bit allows the user to identify certain instructions in the captured trace that may further assist the debug process. For example, the user may choose to tag certain types of instructions or instructions within a particular address range, so as to easily identify them in the ETB 40 .
  • the tag function may be used to further filter the instructions that will be written to the ETB 40 , so as to use the limited ETB entries more efficiently.
  • the use of the tag function to collect information is more fully described herein. For purposes of the register shown in FIG. 3A, it is sufficient to note that the tag bit shows whether or not a particular code was “tagged” by the user.
  • the valid bit indicates when an entry is valid.
  • the ETB 40 uses a write pointer 50 to indicate the next available ETB register, e.g. 42 , by incrementing after every write function and wrapping around from entry 31 to entry 0, in circular fashion.
  • the write pointer 50 may be configured to initialize itself to entry 0 on power up.
  • the ETB entries, e.g., 42 are cleared, such as during the transition from EM mode to x86 mode. When this transition occurs, the pointer 50 does not return to entry 0, in one embodiment, yet the information must all be cleared, and a new execution trace gathered.
  • one embodiment of the present invention uses a valid bit and sets that bit to zero to indicate that the entry is not valid. The valid bit for an entry is then set when a new entry is written.
  • FIG. 3A also shows the form of an ETB entry in this mode.
  • this mode has been numbered mode 00.
  • the entries in the register are the same as those used in retired macroinstruction trace mode.
  • the type codes are somewhat different.
  • the type entry uses 00 to represent a code segment descriptor base address, 01 to represent a source address, 10 to represent a destination address, and 11 is undefined.
  • the x86 engine 20 includes a microcode ROM that decomposes macroinstructions into microinstructions. Each microinstruction that is executed in the x86 engine 30 is identified by a unique address within the microcode ROM, called the micro-ip. This mode allows recording of all retiring micro-ips on the ETB 40 . Since the x86 engine 30 can execute a maximum of two microinstructions per clock, two micro-ips are written to the ETB entry during each allocation cycle. Since the micro-ips are usually smaller in width compared to the IA-32 macroinstruction addresses (32 bits), as many as 2 micro-ips and two valid bits (one per retiring microinstruction) can be recorded.
  • FIG. 3B shows the form of an ETB entry in this mode.
  • this mode has been numbered mode 11.
  • the embodiment shown for this mode includes a 15-bit micro-ip 0 address, a one-bit micro-ip 0 valid entry, a 15-bit micro-ip 1 address, a one-bit micro-ip 1 valid entry, one-bit valid entry, and a one-bit tagged address.
  • two bits are left undefined when in retired microinstruction trace mode.
  • This mode is analogous to the Macro-Branch Trace mode, in that it attempts to capture changes in the execution flow of micro-operations.
  • the micro-ips of the first two micro-operations of each new macroinstruction are captured on the ETB as they retire.
  • micro-ips of the first microcode line of flow that are executed as a result of a back-end exception in the machine are captured as well.
  • the information in this mode is the same as in mode 3. Two micro-ips and 2 valid bits are allocated for each entry.
  • FIG. 3B also shows the form of an ETB entry in this mode.
  • this mode has been numbered mode 01.
  • the ETB register entries in this mode are the same as in retired microinstruction trace mode.
  • each entry, e.g. 42 , in the ETB 40 is written when a macroinstruction or a microinstruction retires in the x86 engine 20 .
  • a valid bit is set for each entry written.
  • information is written to the ETB 40 only when operating in x86 or IA-32 mode, and not in the native EM mode.
  • the processor transitions from EM mode to x86 mode, the entries in the ETB 40 are cleared. That is, the valid bits are set to zero.
  • the processor transitions from x86 mode to EM mode the entries in the ETB 40 remain unchanged, but no information is written in EM mode. The reading of the ETB 40 is performed in EM mode, so no information is destroyed in this transition.
  • the ETB 40 collects information regarding the most recent 32 macroinstructions or pair of microinstructions of the type selected, as those instructions retire, without disrupting the processor.
  • the ETB 40 is read in the EM mode of execution by issuing a series of 32 read commands to the ETB 40 .
  • Each read command places the result of the entry indexed by the pointer 50 into a general purpose register 70 .
  • the pointer 50 is incremented after each read operation is complete.
  • a series of 32 read operations from the ETB 40 will result in a recreation of the trace addresses in chronological order.
  • a sample read loop in pseudo code may read as follows:
  • the present invention may be configured to operate in a default mode.
  • the default mode may be set such that the addresses of all retiring x86 macroinstruction branches are deposited on the ETB 40 .
  • the processor executes the instructions, the ETB 40 simultaneously tracks those instructions.
  • the ETB 40 provides a simpler and quicker way of accessing the execution history of either microinstructions or macroinstructions, but that traditional debugging methods are not precluded by the ETB 40 .
  • the ETB 40 may be used in conjunction with other traditional methods.
  • each entry contains address information about the microinstructions or macroinstructions that are executed, any information associated with the retiring operation that could help in debugging can be written.
  • the present invention writes the fields shown in FIGS. 3A and 3B. These fields may help further narrow the source of the problem. For example the type field may indicate whether the failure occurred soon after a branch and if so, whether the last instruction retired was the target of the branch or the branch itself.
  • the width of each entry of the ETB 40 is limited by physical implementation constraints. To use the ETB entries more efficiently, the present embodiment uses the machine's tagging capability to filter the type of instruction information collected by the ETB 40 .
  • the user could collect only those instructions having particular operation codes (e.g., add instructions) or a class of codes (e.g., arithmetic instructions) or those instructions within a particular address range.
  • the tag bit associated with an executing macro or micro instruction is set when the predetermined condition is met, and cleared if not met. When the instruction retires, the tag bit is written along with the instruction address in the present embodiment.
  • the ‘tag enable’ bit 110 the user can set up the machine so that only operations that have the tag bit set are written to the ETB 40 .
  • FIG. 4 shows an example logic that may be employed in the ETB write portion of one embodiment.
  • FIG. 4 shows the logic that might go into a particular ETB entry 42 , also denoted as “slot x.”
  • slot x In the example of FIG. 4, only the logic for slot x 42 is shown, but it should be appreciated that similar logic would be used by every slot, e.g., 42 of the ETB 40 to control the writing of data to the ETB 40 .
  • the preselected data is written to slot x 42 of the ETB 40 through a flip-flop 250 , which is enabled by an enable slot x output 170 , which is the output of a series of logic gates.
  • an enable slot x output 170 which is the output of a series of logic gates.
  • data is only written to slot x 42 if: (1) an instruction retires, (2) the writer pointer 50 points to slot x 42 , and (3) an allocate enable signal 140 has been issued.
  • the write pointer 50 is incremented on every write to the ETB 40 .
  • the pointer is compared to slot x 42 to determine if slot x 42 is the next entry to be written, using a comparator 230 .
  • the instruction retire signal 150 triggers every time a macroinstruction or one or more microinstructions in the x86 engine 20 retires.
  • the allocate enable signal 140 relates to the tag function. If the tag enable bit is set, only those instructions having the associated tag match bit set will be written to the ETB. Otherwise, depending on the mode selected, any retiring instruction(s) as indicated by the instruction retire signal will be written. Of course, any other function could be used to control the allocate enable bit 140 , and any other function could further qualify the slot x enable bit 170 .

Abstract

A method and an apparatus for re-creating a trace of instructions from an emulated instruction set when running on hardware optimized for a different instruction set, such as IA-32 instructions running on an IA-64 machine, are disclosed. An execution trace buffer is created that maintains desired information about instructions as they are executed and retired. The invention may be configured such that certain desired information helpful to debugging the system may be written to the buffer as the instructions are retired. This information may include the addresses of sequential or branch instructions, or other relevant information that can be gathered continuously and non-intrusively as instructions are executed. The information may be read from the buffer and output in a machine-visible form at the user's convenience.

Description

FIELD
The technical field relates to digital computer systems debugging. More particularly, it relates to methods and an apparatus for debugging IA-32 systems running on an IA-64 CPU.
BACKGROUND
In the field of computer architecture, it is desirable to provide means of debugging systems. This is especially true in mixed architectures, such as the IA-64 architecture, which supports two instruction sets—the IA-32 variable length instruction set and the enhanced mode (EM) instruction set. A single machine, such as an IA-64 microprocessor, may process instructions from both these instruction sets. In debugging problems with processor execution, it may become necessary to investigate the sequence of instructions executed immediately prior to the problem. With respect to the IA-64 machine, it is desirable to provide debugging methods for IA-32 or x86 instructions, as well as native instructions.
Various methods exist by which computer systems may be debugged. For example, some central processing units (CPUs) provide debug hints in the form of “branch trace messages.” These branch trace messages send out a special signature (e.g., source, destination address of branch) on the processor bus. One debugging technique uses “breakpoints” that cause the CPU to respond in a certain specified way when a certain instruction is executed. In order to gather information about the architectural state of the machine using a breakpoint, it is necessary to stop the machine at the breakpoint. While some techniques like “Sample-on-the-Fly” allow a portion of the machine state to be sampled while a program executes, the information recorded is overwritten in each new cycle, giving no temporal information about the execution history. Scan methods have been employed to interrogate the internal state of the machine by stopping the CPU for a clock cycle, scanning the processor state, and sending it to a system-visible entity such as a processor bus or register. The CPU is clocked for a cycle, new state information gathered and the process repeats.
The problem with existing debug methods is that they are slow, complex, and intrusive. These debug techniques require stopping the program, reading all of the information, and then continuing the program. Also, some debug techniques require some knowledge about the failing condition. For instance, the breakpoint technique requires identifying a breakpoint in the vicinity of the suspected problem (for example, a range of instruction addresses) and examining the CPU state when the machine halts at the breakpoint. This is largely a process of trial and error—making an educated guess regarding the location of the breakpoint, re-executing certain instructions, and determining whether the error exists. Sometimes the very act of setting up a breakpoint may perturb the machine state enough such that the error is masked.
Also, existing debug techniques do not allow the user to efficiently switch modes of operation. That is, traditional methods may allow the user to analyze both macroinstructions and microinstructions, but not by the same method.
What is needed is a better way of accessing the execution history. In particular, what is needed is a non-intrusive means of gathering instruction information as the instructions execute without stopping the machine to set a breakpoint or to scan particular nodes.
SUMMARY
A method for creating a trace of emulated instructions from an emulated instruction set when running on hardware optimized for a different instruction set, such as IA-32 instructions running on an IA-64 machine is described. An execution trace buffer is created that maintains desired information about instructions as they are executed and retired. A system may be configured such that certain desired information helpful to debugging the system may be written to the buffer as the instructions are retired. This information may include the addresses of sequential or branch instructions, or other relevant information that can be gathered continuously and non-intrusively as instructions are executed. The information may be read from the buffer and output in a machine-visible form at the user's convenience.
A computer system capable of creating an easily readable execution history by using an execution trace buffer. The execution trace buffer maintains certain information about instructions as they are executed and retired. The computer system may be configured such that certain desired information helpful to debugging the system may be written to the buffer as the instructions are retired. This information may include the addresses of sequential or branch instructions, or other relevant information that can be gathered continuously and non-intrusively as instructions are executed. The information may be read from the buffer and output in a machine-visible form at the user's convenience.
SUMMARY OF DRAWINGS
FIG. 1 is a block diagram of the system hardware.
FIG. 2 is a flow chart showing a new method.
FIG. 3A is a diagram showing a form of the ETB entry when operating in either Retired Macroinstruction Trace mode or Retired Macro-Branch Trace mode.
FIG. 3B is a diagram showing a form of the ETB entry when operating in either Retired Microinstruction Trace mode or Retired First Micro-ips of New Flows Trace mode.
FIG. 4 is an example diagram showing part of the logic circuitry used to write information to the ETB.
DETAILED DESCRIPTION
A method and apparatus are described for re-creating a trace of instructions from an emulated instruction set when running on hardware optimized for a different instruction set by using an “execution trace buffer” (ETB) 40. By way of illustration only and not by way of limitation, the method is explained in the context of IA-32 programs running on an IA-64 CPU. One skilled in the art will recognize that the method and apparatus of the present invention extend beyond these architectures and can be implemented in any system processing emulated instructions on the native hardware of a different instruction set. All references to x86 and IA-32 are intended to refer generally to any sort of emulated instruction set architecture (ISA). Likewise, all references to the IA-64 architecture are intended to refer generally to any sort of native ISA. Because the x86 architecture is designed to execute instructions from the IA-32 instruction set, those terms are used interchangeably.
The ETB 40 captures x86 instruction execution history. Unlike most existing methods, the history is obtained non-intrusively. In operation, the ETB 40 gathers preselected data about instructions as they execute, regardless of whether any error occurs. Unlike existing methods, the present invention gathers instruction data “on the fly,” without halting the operation of the program. Then, when an error does occur, the user can access the ETB 40 to read the series of instructions executed immediately before the error occurred. The ETB 40 provides a window into the execution history of the x86 engine 20, displaying the most recently executed instructions whenever the user needs them. The operator debugging the system—either the hardware or the software—can simply issue a set of instructions to read the ETB 40 to determine which instructions issued immediately prior to a problem.
In one embodiment, the system also operates in multiple, pre-selectable modes, depending upon the instruction information desired. The system also gathers information about both macroinstructions and microinstructions. In one embodiment, the system also allows the user to customize the information retrieved.
The IA-64 instruction set is a combination of the enhanced mode (EM) and IA-32 instruction sets. The EM instruction set defines a set of fixed-length 64-bit instructions that execute on native EM hardware. The IA-32 instruction set includes variable-length instructions. These variable-length IA-32 instructions are also referred to as “macroinstructions.” The macroinstructions are decomposed by the x86 engine 20 into native EM instructions, which are also referred to as “microinstructions” when operating in x86/IA-32 mode. The execution of each IA-32 instruction is achieved by executing a series of EM microinstructions. The ETB 40 provides a means of tracing the execution history of either microinstructions or macroinstructions.
FIG. 1 shows a computer system 10, having an x86 engine 20 and an ETB 40. The function of the x86 engine 20 can be broadly broken down into four distinct stages the fetch stage 22, the decode stage 24, the execute stage 26, and the retire stage 28. In the embodiment shown in FIG. 1, the ETB 40 has 32 entries, numbered 0 through 31. A generic entry 42, also referred to as “slot x,” is indicated on FIG. 1 for further description. The retire stage 28 of the x86 engine 20 writes certain, predetermined information to the ETB 40. The ETB 40 has a pointer 50 which indexes one of the 32 possible ETB entries, e.g. 42. The ETB 40 is treated as a model-specific register (MSR), each slot of which can be written to or read from, depending on the position of the ETB pointer 50. As shown in the embodiment of FIG. 1, the pointer 50 may be initialized to point to entry 0 at reset. It increments after each write and eventually wraps around from 31 back to 0 in a circular fashion.
FIG. 1 also shows that the ETB 40 may be read into a machine-visible general purpose register 70 using techniques known to those skilled in the art. In the embodiment shown in FIG. 1, the ETB 40 can be read onto a result bus 60. The result bus 60 can be used to transport control and debug register information to various parts of the CPU 10. In debug mode when a read operation is issued to the ETB 40, the entry pointed to by the ETB pointer 50 is read into the specified target general-purpose register 70, and the ETB pointer 50 is advanced. Thus, by issuing a series of 32 read operations from the ETB 40, the execution history captured on the ETB 40 can be made externally visible.
FIG. 2 shows a flow chart of the method. First, a mode of operation is selected 210 to determine which type of information will be collected in the ETB 40. Then, the desired information is written 220 to the ETB 40 as the instructions retire. As the machine runs, the ETB 40 continues to collect the information until the user enters debug mode 222. When a problem occurs requiring analysis of the system, the user can read 230 the entries on the ETB 40 by issuing a short loop of read instructions. The information is then read 230 onto the result bus 60 and output 240 to a general purpose register 70, where it can be analyzed. The ETB 40 can continue to be read until all of its entries have been read 242 and the read loop is done 244.
As noted above, the information written to the ETB 40 depends upon the preselected mode of operation. Although the ETB 40 may be configured to retrieve any sort of information from instructions retiring in the x86 engine 20, two types of such information include macroinstruction information and microinstruction information. Within both of these broad categories, the ETB 40 may operate in two sub-modes, depending upon whether all information is requested or just that information relating to a change in program flow. The ETB 40, then, has four main modes of operation classified by the four forms of execution history information traced.
1. Retired Macroinstruction Trace Mode
In this mode, the Virtual 32-bit address (also called a virtual instruction pointer (VIP)) of all successfully retired IA-32 instructions is saved on the ETB 40. The virtual address is an offset from the base of the code segment. The code segment base address in the code segment descriptor and the VIP information from the ETB 40 can provide the linear addresses of all IA-32 instructions executed, when used in this mode.
FIG. 3A shows the form of an ETB entry, e.g. 42, in this retired macroinstruction trace mode. In the embodiment shown, this mode has been numbered mode 10. In the embodiment shown in FIGS. 3A through 3B, the ETB entries are 36-bits wide. In retired macroinstruction trace mode, the entry includes 32 bits of the IA-32 instruction address, a two-bit type entry, a one-bit valid entry, and a one-bit tagged address. The size of the register entry can, of course, be changed to incorporate additional information used in the operation of the system if desired.
In the embodiment shown, the type entry uses 00 to represent a code segment descriptor base address, 01 to represent a target address of a branch instruction, 10 to represent a default or sequential address, and 11 is undefined.
The tag bit allows the user to identify certain instructions in the captured trace that may further assist the debug process. For example, the user may choose to tag certain types of instructions or instructions within a particular address range, so as to easily identify them in the ETB 40. In addition, the tag function may be used to further filter the instructions that will be written to the ETB 40, so as to use the limited ETB entries more efficiently. The use of the tag function to collect information is more fully described herein. For purposes of the register shown in FIG. 3A, it is sufficient to note that the tag bit shows whether or not a particular code was “tagged” by the user.
The valid bit indicates when an entry is valid. As noted, the ETB 40 uses a write pointer 50 to indicate the next available ETB register, e.g. 42, by incrementing after every write function and wrapping around from entry 31 to entry 0, in circular fashion. The write pointer 50 may be configured to initialize itself to entry 0 on power up. As explained herein, at certain times the ETB entries, e.g., 42, are cleared, such as during the transition from EM mode to x86 mode. When this transition occurs, the pointer 50 does not return to entry 0, in one embodiment, yet the information must all be cleared, and a new execution trace gathered. To accomplish this, one embodiment of the present invention uses a valid bit and sets that bit to zero to indicate that the entry is not valid. The valid bit for an entry is then set when a new entry is written.
2. Retired Macro-Branch Trace Mode
In this mode, all IA-32 instructions that result in a change in program flow (taken conditional and unconditional jumps, calls, and returns) are recorded on the ETB 40. For these instructions, both the address of the branch and the branch target are recorded on the ETB 40. This allows greater execution history to be recorded, as the addresses between the last branch target and the next branch source are implied to be sequential. In addition, for far branches that result in a change to the code segment base, the old code segment base is recorded on the ETB 40. The type field associated with each entry distinguishes the entry as either a source address, a target address, or a code segment base address.
FIG. 3A also shows the form of an ETB entry in this mode. In the embodiment shown, this mode has been numbered mode 00. The entries in the register are the same as those used in retired macroinstruction trace mode. However, the type codes are somewhat different. In the embodiment shown, the type entry uses 00 to represent a code segment descriptor base address, 01 to represent a source address, 10 to represent a destination address, and 11 is undefined.
3. Retired Microinstruction Trace Mode
The x86 engine 20 includes a microcode ROM that decomposes macroinstructions into microinstructions. Each microinstruction that is executed in the x86 engine 30 is identified by a unique address within the microcode ROM, called the micro-ip. This mode allows recording of all retiring micro-ips on the ETB 40. Since the x86 engine 30 can execute a maximum of two microinstructions per clock, two micro-ips are written to the ETB entry during each allocation cycle. Since the micro-ips are usually smaller in width compared to the IA-32 macroinstruction addresses (32 bits), as many as 2 micro-ips and two valid bits (one per retiring microinstruction) can be recorded.
FIG. 3B shows the form of an ETB entry in this mode. In the embodiment shown, this mode has been numbered mode 11. The embodiment shown for this mode includes a 15-bit micro-ip 0 address, a one-bit micro-ip 0 valid entry, a 15-bit micro-ip 1 address, a one-bit micro-ip 1 valid entry, one-bit valid entry, and a one-bit tagged address. In the embodiment shown, two bits are left undefined when in retired microinstruction trace mode.
4. Retired First Micro-ips of New Flows Trace Mode
This mode is analogous to the Macro-Branch Trace mode, in that it attempts to capture changes in the execution flow of micro-operations. When a non-sequential operation occurs, the micro-ips of the first two micro-operations of each new macroinstruction are captured on the ETB as they retire. In addition, micro-ips of the first microcode line of flow that are executed as a result of a back-end exception in the machine are captured as well. The information in this mode is the same as in mode 3. Two micro-ips and 2 valid bits are allocated for each entry.
FIG. 3B also shows the form of an ETB entry in this mode. In the embodiment shown, this mode has been numbered mode 01. The ETB register entries in this mode are the same as in retired microinstruction trace mode.
Depending upon the mode selected, each entry, e.g. 42, in the ETB 40 is written when a macroinstruction or a microinstruction retires in the x86 engine 20. In addition to the various ETB data fields, a valid bit is set for each entry written. In one embodiment, information is written to the ETB 40 only when operating in x86 or IA-32 mode, and not in the native EM mode. When the processor transitions from EM mode to x86 mode, the entries in the ETB 40 are cleared. That is, the valid bits are set to zero. When the processor transitions from x86 mode to EM mode, the entries in the ETB 40 remain unchanged, but no information is written in EM mode. The reading of the ETB 40 is performed in EM mode, so no information is destroyed in this transition.
In use, the ETB 40 collects information regarding the most recent 32 macroinstructions or pair of microinstructions of the type selected, as those instructions retire, without disrupting the processor. To debug an error, the ETB 40 is read in the EM mode of execution by issuing a series of 32 read commands to the ETB 40. Each read command places the result of the entry indexed by the pointer 50 into a general purpose register 70. The pointer 50 is incremented after each read operation is complete. A series of 32 read operations from the ETB 40 will result in a recreation of the trace addresses in chronological order. A sample read loop in pseudo code may read as follows:
mov r30=0x00
//initialize counter
READ inc r30
//increment counter
mov r5=msr[ETB]
//read ETB entry
cmp.eq p1,p2=r30,32 //all 32 entries read? if so, DONE
(p2) br.cond.sptk READ
//continue reading if not all 32 read
DONE
The present invention may be configured to operate in a default mode. For example, the default mode may be set such that the addresses of all retiring x86 macroinstruction branches are deposited on the ETB 40. While the processor executes the instructions, the ETB 40 simultaneously tracks those instructions. It should be appreciated that the ETB 40 provides a simpler and quicker way of accessing the execution history of either microinstructions or macroinstructions, but that traditional debugging methods are not precluded by the ETB 40. The ETB 40 may be used in conjunction with other traditional methods.
While each entry contains address information about the microinstructions or macroinstructions that are executed, any information associated with the retiring operation that could help in debugging can be written. In one embodiment, the present invention writes the fields shown in FIGS. 3A and 3B. These fields may help further narrow the source of the problem. For example the type field may indicate whether the failure occurred soon after a branch and if so, whether the last instruction retired was the target of the branch or the branch itself. The width of each entry of the ETB 40 is limited by physical implementation constraints. To use the ETB entries more efficiently, the present embodiment uses the machine's tagging capability to filter the type of instruction information collected by the ETB 40. For example, the user could collect only those instructions having particular operation codes (e.g., add instructions) or a class of codes (e.g., arithmetic instructions) or those instructions within a particular address range. The tag bit associated with an executing macro or micro instruction is set when the predetermined condition is met, and cleared if not met. When the instruction retires, the tag bit is written along with the instruction address in the present embodiment. In addition, by setting a programmable control bit in the machine—called the ‘tag enable’ bit 110, the user can set up the machine so that only operations that have the tag bit set are written to the ETB 40.
FIG. 4 shows an example logic that may be employed in the ETB write portion of one embodiment. FIG. 4 shows the logic that might go into a particular ETB entry 42, also denoted as “slot x.” In the example of FIG. 4, only the logic for slot x42 is shown, but it should be appreciated that similar logic would be used by every slot, e.g., 42 of the ETB 40 to control the writing of data to the ETB 40. The preselected data is written to slot x42 of the ETB 40 through a flip-flop 250, which is enabled by an enable slot x output 170, which is the output of a series of logic gates. Specifically, in the embodiment of FIG. 4, data is only written to slot x42 if: (1) an instruction retires, (2) the writer pointer 50 points to slot x42, and (3) an allocate enable signal 140 has been issued. The write pointer 50 is incremented on every write to the ETB 40. The pointer is compared to slot x42 to determine if slot x42 is the next entry to be written, using a comparator 230. The instruction retire signal 150 triggers every time a macroinstruction or one or more microinstructions in the x86 engine 20 retires. The allocate enable signal 140 relates to the tag function. If the tag enable bit is set, only those instructions having the associated tag match bit set will be written to the ETB. Otherwise, depending on the mode selected, any retiring instruction(s) as indicated by the instruction retire signal will be written. Of course, any other function could be used to control the allocate enable bit 140, and any other function could further qualify the slot x enable bit 170.
It should be recognized by those skilled in the art that these embodiments provide an advantageous method and apparatus for debugging IA-32 instructions on a chip processing more than one type of instruction set and for allowing debugging while the processor is in EM mode. In particular, one skilled in the art will recognize that the present invention provides a non-intrusive means of gathering instruction data while a program is operating for use later, during debug. It should also be recognized that the system allows the collection of information relating to both macroinstructions and microinstructions.
Although the invention has been described in detail with reference to certain embodiments thereof, variations are possible. For example, although the sizes and formats of certain data, registers, stacks, buffers, logic circuitry, code, and other certain specific information were given as examples, these examples were by way of illustration only, and not by way of limitation. The invention may be embodied in other specific forms without departing from the essential spirit or attributes thereof. It is desired that the embodiments described herein be considered in all respects as illustrative, not restrictive, and that reference be made to the appended claims for determining the scope of the invention.

Claims (19)

What is claimed is:
1. A method for debugging a system in a processor comprising:
executing a plurality of instructions with an execution engine;
retiring the instructions from the execution engine after the instructions are executed, wherein the executing comprises executing some of the instructions while retiring others of the instructions;
writing information regarding the instructions to an execution trace buffer (ETB) as the instructions retire and while the execution engine processes others of the plurality of instructions, wherein the step of writing information comprises writing information based on a pre-selected mode of operation, wherein the step of writing comprises writing macroinstruction address information when operating in a macroinstruction mode and writing micro-ip address when operating in a microinstruction mode; and
reading the information from the ETB,
wherein the method is implemented in a mixed-architecture processor that processes both microinstructions and macroinstructions, and wherein the step of writing information comprises writing information regarding both microinstructions and macroinstructions.
2. The method of claim 1, wherein the ETB comprises a pointer, which references an entry of the ETB and changes position after the information is written to the ETB.
3. The method of claim 2, wherein the information read from the ETB is issued to a machine-visible register.
4. The method of claim 1, wherein the step of writing information comprises writing address information for each of the instructions as each of the instructions retires.
5. The method of claim 1, wherein the step of writing information comprises writing branch address and branch target information for each macroinstruction that results in a change in program flow.
6. The method of claim 1, wherein the step of writing information comprises:
writing a virtual instruction pointer for each retiring instruction when operating in a retired macroinstruction trace mode;
writing a branch address and a branch target when operating in a retired macro-branch trace mode;
writing micro-ip information for each retiring instruction when operating in a retired microinstruction trace mode; and
writing micro-ip information when a non-sequential operation occurs when operating in a retired first micro-ip of new flows trace mode.
7. An execution trace buffer (ETB) for use in debugging a system comprising:
a plurality of registers capable of holding information regarding executed instructions as the instructions are processed, wherein instructions are executed by an execution engine and are retired while the execution engine executes other instructions, and wherein the information stored in the registers varies depending upon a pre-selected mode of operation, and comprises macroinstruction address information when operating in a macroinstruction mode and micro-ip address information when operating in a microinstruction mode;
a pointer identifying a register into which an instruction is written; and
a bus connected to the ETB capable of reading the information on the ETB,
wherein the ETB is adapted to operate in a mixed-architecture processor that processes both microinstructions and macroinstructions, and wherein the ETB holds information related to microinstructions and macro instructions.
8. The ETB of claim 7, further comprising:
a machine-visible register connected to a bus, to which the information in the ETB may be output.
9. The ETB of claim 7, wherein the ETB receives the instruction information while an execution engine processes a different instruction.
10. The ETB of claim 7, wherein the registers store address information for each instruction retired by an execution engine.
11. The ETB of claim 7, wherein the registers store only branch address and branch target information for each instruction that results in a change of program flow.
12. The ETB of claim 7, wherein the registers store a virtual instruction pointer for each retiring instruction when operating in a retired macroinstruction trace mode, store a branch address and a branch target when operating in a retired macro-branch trace mode, store micro-ip information for each retiring instruction when operating in a retired microinstruction trace mode, and store micro-ip information only when a non-sequential operation occurs when operating in a retired first micro-ip of new flows trace mode.
13. A computer system capable of assisting a user to debug the system comprising:
a retire stage of an execution engine that holds information regarding executed instructions, wherein the execution engine processes both macroinstructions and microinstructions; and
an execution trace buffer (ETB) connected to the execution engine, which ETB receives information regarding executed instructions, wherein the information varies depending upon a pre-selected mode of operation, wherein the ETB operates in a macroinstruction mode and in a microinstruction mode, wherein the information comprises macroinstruction address information when operating in the macroinstruction mode and micro-ip address information when operating in the microinstruction mode, and
wherein the ETB receives the information while the execution engine processes another instruction.
14. The computer system of claim 13, further comprising:
a machine-visible register connected the ETB, to which the information in the ETB may be output.
15. The computer system of claim 14, wherein the machine-visible register is connected to the ETB by a bus.
16. The computer system of claim 13, wherein the execution engine emulates instructions from an instruction set architecture in a CPU capable of running programs with multiple instruction sets.
17. The computer system of claim 13, wherein the ETB stores address information for each executed instruction.
18. The computer system of claim 13, wherein the ETB stores address information related to branch instructions only, for macroinstructions that result in a change of program flow.
19. The computer system of claim 13, wherein the ETB stores a virtual instruction pointer for each retiring instruction when operating in a retired macroinstruction trace mode, stores a branch address and a branch target when operating in a retired macro-branch trace mode, stores macro-ip information for each retiring instruction when operating in a retired microinstruction trace mode, and stores micro-ip information only when a non-sequential operation occurs when operating in a retired first micro-ip of new flows trace mode.
US09/506,774 2000-02-18 2000-02-18 Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field Expired - Lifetime US6609247B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US09/506,774 US6609247B1 (en) 2000-02-18 2000-02-18 Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field
JP2001041238A JP2001236245A (en) 2000-02-18 2001-02-19 Method and device for re-generating trace of emulated instruction set in executing instruction on hardware specific to different instruction set field

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US09/506,774 US6609247B1 (en) 2000-02-18 2000-02-18 Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field

Publications (1)

Publication Number Publication Date
US6609247B1 true US6609247B1 (en) 2003-08-19

Family

ID=24015959

Family Applications (1)

Application Number Title Priority Date Filing Date
US09/506,774 Expired - Lifetime US6609247B1 (en) 2000-02-18 2000-02-18 Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field

Country Status (2)

Country Link
US (1) US6609247B1 (en)
JP (1) JP2001236245A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020116663A1 (en) * 2001-02-21 2002-08-22 Wood Michael C. Data processing system with on-chip FIFO for storing debug information and method therefor
US20030192034A1 (en) * 2002-04-04 2003-10-09 Mitsubishi Denki Kabushiki Kaisha Trace device preventing loss of trace information which will be important in debugging
US20040139305A1 (en) * 2003-01-09 2004-07-15 International Business Machines Corporation Hardware-enabled instruction tracing
US6895508B1 (en) * 2000-09-07 2005-05-17 International Business Machines Corporation Stack memory protection
US6901581B1 (en) * 2002-10-02 2005-05-31 Eridon Corporation Method for software debugging via simulated re-execution of a computer program
US20050278705A1 (en) * 2004-06-10 2005-12-15 Castellanos Maria G System and method for analyzing a process
US7100152B1 (en) * 2000-01-31 2006-08-29 Freescale Semiconductor, Inc. Software analysis system having an apparatus for selectively collecting analysis data from a target system executing software instrumented with tag statements and method for use thereof
FR2882832A1 (en) * 2005-03-04 2006-09-08 St Microelectronics Sa CONNECTION MONITORING GENERATION DEVICE FOR MICROPROCESSOR AND MICROPROCESSOR HAVING SUCH A DEVICE
US20060224873A1 (en) * 2005-03-31 2006-10-05 Mccormick James E Jr Acquiring instruction addresses associated with performance monitoring events
US20080040587A1 (en) * 2006-08-09 2008-02-14 Kevin Charles Burke Debug Circuit Comparing Processor Instruction Set Operating Mode
US20080215920A1 (en) * 2007-03-02 2008-09-04 Infineon Technologies Program code trace signature
US20090204383A1 (en) * 2008-02-07 2009-08-13 Alexander Weiss Procedure and Device for Emulating a Programmable Unit Providing System Integrity Control
US20090204950A1 (en) * 2008-02-11 2009-08-13 International Business Machines Corporation Method, system and computer program product for template-based vertical microcode instruction trace generation
US7747989B1 (en) * 2002-08-12 2010-06-29 Mips Technologies, Inc. Virtual machine coprocessor facilitating dynamic compilation
US8132159B1 (en) 2004-07-23 2012-03-06 Green Hills Software, Inc. Post-execution software debugger with event display
US8136096B1 (en) * 2004-07-23 2012-03-13 Green Hills Software, Inc. Backward post-execution software debugger
US8271955B1 (en) 2004-07-23 2012-09-18 Green Hille Software, Inc. Forward post-execution software debugger
US11093843B2 (en) * 2017-11-29 2021-08-17 Adobe Inc. Self-trained content management system for automatically classifying execution modes for user requests
US20220269507A1 (en) * 2021-02-24 2022-08-25 Northrop Grumman Systems Corporation Systems and methods for emulating a processor

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751942A (en) * 1993-06-30 1998-05-12 Intel Corporation Trace event detection during trace enable transitions
US5859999A (en) * 1996-10-03 1999-01-12 Idea Corporation System for restoring predicate registers via a mask having at least a single bit corresponding to a plurality of registers
US5860017A (en) * 1996-06-28 1999-01-12 Intel Corporation Processor and method for speculatively executing instructions from multiple instruction streams indicated by a branch instruction
US5944841A (en) * 1997-04-15 1999-08-31 Advanced Micro Devices, Inc. Microprocessor with built-in instruction tracing capability
US6145123A (en) * 1998-07-01 2000-11-07 Advanced Micro Devices, Inc. Trace on/off with breakpoint register
US6163764A (en) * 1998-10-12 2000-12-19 Intel Corporation Emulation of an instruction set on an instruction set architecture transition
US6182210B1 (en) * 1997-12-16 2001-01-30 Intel Corporation Processor having multiple program counters and trace buffers outside an execution pipeline
US6240509B1 (en) * 1997-12-16 2001-05-29 Intel Corporation Out-of-pipeline trace buffer for holding instructions that may be re-executed following misspeculation
US6463522B1 (en) * 1997-12-16 2002-10-08 Intel Corporation Memory system for ordering load and store instructions in a processor that performs multithread execution
US6467083B1 (en) * 1998-09-30 2002-10-15 Nec Corporation Debugging system for computer program, method for checking target program and information storage medium for storing checking program
US6470408B1 (en) * 1999-04-14 2002-10-22 Hewlett-Packard Company Apparatus and method for delivering interrupts via an APIC bus to IA-32 processors
US6496925B1 (en) * 1999-12-09 2002-12-17 Intel Corporation Method and apparatus for processing an event occurrence within a multithreaded processor

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751942A (en) * 1993-06-30 1998-05-12 Intel Corporation Trace event detection during trace enable transitions
US5860017A (en) * 1996-06-28 1999-01-12 Intel Corporation Processor and method for speculatively executing instructions from multiple instruction streams indicated by a branch instruction
US5859999A (en) * 1996-10-03 1999-01-12 Idea Corporation System for restoring predicate registers via a mask having at least a single bit corresponding to a plurality of registers
US5944841A (en) * 1997-04-15 1999-08-31 Advanced Micro Devices, Inc. Microprocessor with built-in instruction tracing capability
US6182210B1 (en) * 1997-12-16 2001-01-30 Intel Corporation Processor having multiple program counters and trace buffers outside an execution pipeline
US6240509B1 (en) * 1997-12-16 2001-05-29 Intel Corporation Out-of-pipeline trace buffer for holding instructions that may be re-executed following misspeculation
US6463522B1 (en) * 1997-12-16 2002-10-08 Intel Corporation Memory system for ordering load and store instructions in a processor that performs multithread execution
US6145123A (en) * 1998-07-01 2000-11-07 Advanced Micro Devices, Inc. Trace on/off with breakpoint register
US6467083B1 (en) * 1998-09-30 2002-10-15 Nec Corporation Debugging system for computer program, method for checking target program and information storage medium for storing checking program
US6163764A (en) * 1998-10-12 2000-12-19 Intel Corporation Emulation of an instruction set on an instruction set architecture transition
US6470408B1 (en) * 1999-04-14 2002-10-22 Hewlett-Packard Company Apparatus and method for delivering interrupts via an APIC bus to IA-32 processors
US6496925B1 (en) * 1999-12-09 2002-12-17 Intel Corporation Method and apparatus for processing an event occurrence within a multithreaded processor

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Bharadwaj-Menezes-McKinsey, Wavefront Scheduling: Path Based Data representation and Scheduling of Subgraphs, Nov. 1999, Proceedings 32nd Annual International Symposium on Microarchitecture, pp. 262-271.* *
Dulong, The IA-64 architecture at work, Jul. 1998, Computer, vol. 31, pp. 24-32.* *
Larin-Conte, Compiler-driven cached Code compression Schemes for Embedded ILP Processors, Nov. 1999, Proceedings 32nd Annual International Symposium on Microarchitecture, pp. 82-92.* *
Story-Tang, New Algorithms for Improved Transcendental Functions on IA-64, Apr. 1999, Proceedings 14th IEEE Symposium on Computer Arithmetic.* *
Wolfe, A., "Patents shed light on Merced's Innards", Electronic Engineering Times, Feb. 15, 1999.

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7100152B1 (en) * 2000-01-31 2006-08-29 Freescale Semiconductor, Inc. Software analysis system having an apparatus for selectively collecting analysis data from a target system executing software instrumented with tag statements and method for use thereof
US6895508B1 (en) * 2000-09-07 2005-05-17 International Business Machines Corporation Stack memory protection
US6760864B2 (en) * 2001-02-21 2004-07-06 Freescale Semiconductor, Inc. Data processing system with on-chip FIFO for storing debug information and method therefor
US20020116663A1 (en) * 2001-02-21 2002-08-22 Wood Michael C. Data processing system with on-chip FIFO for storing debug information and method therefor
US20030192034A1 (en) * 2002-04-04 2003-10-09 Mitsubishi Denki Kabushiki Kaisha Trace device preventing loss of trace information which will be important in debugging
US7747989B1 (en) * 2002-08-12 2010-06-29 Mips Technologies, Inc. Virtual machine coprocessor facilitating dynamic compilation
US9207958B1 (en) 2002-08-12 2015-12-08 Arm Finance Overseas Limited Virtual machine coprocessor for accelerating software execution
US10055237B2 (en) 2002-08-12 2018-08-21 Arm Finance Overseas Limited Virtual machine coprocessor for accelerating software execution
US11422837B2 (en) 2002-08-12 2022-08-23 Arm Finance Overseas Limited Virtual machine coprocessor for accelerating software execution
US6901581B1 (en) * 2002-10-02 2005-05-31 Eridon Corporation Method for software debugging via simulated re-execution of a computer program
US20040139305A1 (en) * 2003-01-09 2004-07-15 International Business Machines Corporation Hardware-enabled instruction tracing
US7971191B2 (en) * 2004-06-10 2011-06-28 Hewlett-Packard Development Company, L.P. System and method for analyzing a process
US20050278705A1 (en) * 2004-06-10 2005-12-15 Castellanos Maria G System and method for analyzing a process
US8789023B2 (en) 2004-07-23 2014-07-22 Green Hills Software, Inc. Backward post-execution software debugger
US8914777B2 (en) 2004-07-23 2014-12-16 Green Hills Software Forward post-execution software debugger
US8271955B1 (en) 2004-07-23 2012-09-18 Green Hille Software, Inc. Forward post-execution software debugger
US8584097B2 (en) 2004-07-23 2013-11-12 Green Hills Software, Inc. Post-execution software debugger with event display
US8132159B1 (en) 2004-07-23 2012-03-06 Green Hills Software, Inc. Post-execution software debugger with event display
US8136096B1 (en) * 2004-07-23 2012-03-13 Green Hills Software, Inc. Backward post-execution software debugger
US7404069B2 (en) 2005-03-04 2008-07-22 Stmicroelectronics Sa Branch tracing generator device and method for a microprocessor supporting predicated instructions and expanded instructions
US20060224868A1 (en) * 2005-03-04 2006-10-05 Stmicroelectronics S.A. Branch tracing generator device for a microprocessor and microprocessor equipped with such a device
FR2882832A1 (en) * 2005-03-04 2006-09-08 St Microelectronics Sa CONNECTION MONITORING GENERATION DEVICE FOR MICROPROCESSOR AND MICROPROCESSOR HAVING SUCH A DEVICE
US7747844B2 (en) 2005-03-31 2010-06-29 Hewlett-Packard Development Company, L.P. Acquiring instruction addresses associated with performance monitoring events
US20060224873A1 (en) * 2005-03-31 2006-10-05 Mccormick James E Jr Acquiring instruction addresses associated with performance monitoring events
US8352713B2 (en) * 2006-08-09 2013-01-08 Qualcomm Incorporated Debug circuit comparing processor instruction set operating mode
US20080040587A1 (en) * 2006-08-09 2008-02-14 Kevin Charles Burke Debug Circuit Comparing Processor Instruction Set Operating Mode
US8261130B2 (en) * 2007-03-02 2012-09-04 Infineon Technologies Ag Program code trace signature
US20080215920A1 (en) * 2007-03-02 2008-09-04 Infineon Technologies Program code trace signature
US7930165B2 (en) * 2008-02-07 2011-04-19 Accemic Gmbh & Co. Kg Procedure and device for emulating a programmable unit providing system integrity control
US20090204383A1 (en) * 2008-02-07 2009-08-13 Alexander Weiss Procedure and Device for Emulating a Programmable Unit Providing System Integrity Control
US8423968B2 (en) * 2008-02-11 2013-04-16 International Business Machines Corporation Template-based vertical microcode instruction trace generation
US20090204950A1 (en) * 2008-02-11 2009-08-13 International Business Machines Corporation Method, system and computer program product for template-based vertical microcode instruction trace generation
US11093843B2 (en) * 2017-11-29 2021-08-17 Adobe Inc. Self-trained content management system for automatically classifying execution modes for user requests
US20220269507A1 (en) * 2021-02-24 2022-08-25 Northrop Grumman Systems Corporation Systems and methods for emulating a processor
US11550580B2 (en) * 2021-02-24 2023-01-10 Northrop Grumman Systems Corporation Systems and methods for emulating a processor

Also Published As

Publication number Publication date
JP2001236245A (en) 2001-08-31

Similar Documents

Publication Publication Date Title
US6609247B1 (en) Method and apparatus for re-creating the trace of an emulated instruction set when executed on hardware native to a different instruction set field
US5889981A (en) Apparatus and method for decoding instructions marked with breakpoint codes to select breakpoint action from plurality of breakpoint actions
EP1130518B1 (en) Software analysis system having an apparatus for selectively collecting analysis data from a target system executing software instrumented with tag statements and method for use thereof
US5802272A (en) Method and apparatus for tracing unpredictable execution flows in a trace buffer of a high-speed computer system
US8484516B2 (en) Inter-thread trace alignment method and system for a multi-threaded processor
US20070079177A1 (en) Process monitoring and diagnosis apparatus, systems, and methods
US7080283B1 (en) Simultaneous real-time trace and debug for multiple processing core systems on a chip
US6145123A (en) Trace on/off with breakpoint register
US5388233A (en) Method and apparatus for counting instruction types using bit masks and a programmable bit map
CN106909501B (en) Debug circuitry for comparing processor instruction set operating modes
US20090037886A1 (en) Apparatus and method for evaluating a free-running trace stream
CN107577593B (en) Diagnosing code using performing a single step
US6247146B1 (en) Method for verifying branch trace history buffer information
JP2002512396A (en) Real-time debugger interface for embedded systems
US8037363B2 (en) Generation of trace elements within a data processing apparatus
CN110651250A (en) Generating and verifying hardware instruction traces including memory data content
US8010774B2 (en) Breakpointing on register access events or I/O port access events
JPH0528002A (en) Microprocessor
CN117668785A (en) Virtual instruction extraction method and system based on symbol execution
JP2008276683A (en) Testing device
JPS62109140A (en) Tracing circuit for program processor
Callaghan et al. Software Analysis Paper
JPS63313244A (en) Data processor
JPS6226546A (en) Execution bus cycle tracing circuit
JPH04143840A (en) Instruction executing frequency recording mechanism

Legal Events

Date Code Title Description
AS Assignment

Owner name: HEWLETT-PACKARD COMPANY, COLORADO

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:DUA, ANUJ;BROCKMANN, RUSSELL C.;FERNANDO, M A SUSITH ROHANA;AND OTHERS;REEL/FRAME:010908/0384;SIGNING DATES FROM 20000519 TO 20000526

Owner name: INTEL CORPORATION, CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:DUA, ANUJ;BROCKMANN, RUSSELL C.;FERNANDO, M A SUSITH ROHANA;AND OTHERS;REEL/FRAME:010908/0384;SIGNING DATES FROM 20000519 TO 20000526

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

FPAY Fee payment

Year of fee payment: 4

FPAY Fee payment

Year of fee payment: 8

AS Assignment

Owner name: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P., TEXAS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:HEWLETT-PACKARD COMPANY;REEL/FRAME:026945/0699

Effective date: 20030131

FPAY Fee payment

Year of fee payment: 12