Apparatus for detecting and executing traps in a superscalar processor
AssigneeMetaflow Technologies, Inc.
InventorDavid L. Isaman
Life of this patent
Estimating the term…
Loading patent…
AssigneeMetaflow Technologies, Inc.
InventorDavid L. Isaman
Estimating the term…
Apparatus for detecting and executing trapping program instructions in a superscalar processor operating on a plurality of pipelined instructions includes a fetch stage for fetching consecutive instructions from an instruction cache or from main memory, an instruction FIFO memory for storing fetched instructions from the fetch stage, and an instruction decode stage for removing instructions from the FIFO memory in accordance with relative ages of instructions stored in the FIFO memory. The decode stage examines instructions removed from the FIFO memory for trapping conditions, and flushes all younger instructions from the FIFO memory in response to identification of a trap in an instruction. The decode stage distinguishes between hardware traps and software traps. A software trapping instruction is forwarded to an execute stage for execution. The decode stage immediately causes the fetch address to be changed to the appropriate trap handler address.
A method of responding to trapping conditions in a pipelined superscalar computer, said computer comprising several processing stages including a decode stage for examining at each clock cycle one or more instructions from a sequence of instructions and a plurality of state registers coupled to the decode stage for indicating the operating state of the computer, and an execution stage coupled to said decode stage for receiving decoded instructions supplied by the decode stage, assessing whether any of said decoded instructions satisfies any of a first set of trapping conditions, and performing a specified trap action for any instruction that does satisfy any of said set,
Dependencies are inferred from the claim text.