Method and apparatus for store-into-instruction-stream detection and maintaining branch prediction cache consistency
AssigneeNexgen Microsystems
InventorsJohn G. Favor, Korbin Van Dyke, David R. Stiles
Life of this patent
Estimating the term…
Loading patent…
AssigneeNexgen Microsystems
InventorsJohn G. Favor, Korbin Van Dyke, David R. Stiles
Estimating the term…
The present invention provides for the updating of both the instructions in a branch prediction cache and instructions recently provided to an instruction pipeline from the cache when an instruction being executed attempts to change such instructions ("Store-Into-Instruction-Stream"). The branch prediction cache (BPC) includes a tag identifying the address of instructions causing a branch, a record of the target address which was branched to on the last occurrence of each branch instruction, and a copy of the first several instructions beginning at this target address. A separate instruction cache is provided for normal execution of instructions, and all of the instructions written into the branch prediction cache from the system bus must also be stored in the instruction cache. The instruction cache monitors the system bus for attempts to write to the address of an instruction contained in the instruction cache. Upon such a detection, that entry in the instruction cache is invalidated, and the corresponding entry in the branch prediction cache is invalidated. A subsequent attempt to use an instruction in the branch prediction cache which has been invalidated will detect that it is not valid, and will instead go to main memory to fetch the instruction, where it has been modified.
An apparatus comprising:
An apparatus comprising:
An apparatus comprising:
Dependencies are inferred from the claim text.