Method and apparatus for performing sequential executions of elements in cooperation with a transform
    1.
    发明授权
    Method and apparatus for performing sequential executions of elements in cooperation with a transform 有权
    用于与变换协作执行元素的连续执行的方法和装置

    公开(公告)号:US06715064B1

    公开(公告)日:2004-03-30

    申请号:US09489072

    申请日:2000-01-21

    IPC分类号: G06F1500

    CPC分类号: G06F9/3848

    摘要: A method and apparatus for predicting the outcome of a branch instruction based on the branch history of preceding branch instruction. As a sequence of instructions passes through an instruction execution pipeline, a base branch instruction is chosen, a history index is generated for the base branch instruction and subsequent branch instructions, and a transform is created for the branch instruction to be predicted. When the sequence of instructions subsequently passes through the pipeline again, the transform is used to operate on the history index of the base branch instruction to produce a history index for the branch to be predicted. The result is used as an index into a prediction array to access the prediction logic for the branch instruction being predicted. By using the predetermined transform, a branch status prediction can be made before the branch to be predicted reaches the normal prediction stage in the pipeline.

    摘要翻译: 一种基于前一分支指令的分支历史来预测分支指令的结果的方法和装置。 当指令序列通过指令执行流水线时,选择基本分支指令,为基本分支指令和后续分支指令生成历史索引,并为要预测的分支指令创建变换。 当指令序列随后再次通过流水线时,变换用于对基本分支指令的历史索引进行操作,以产生要预测的分支的历史索引。 将结果用作预测数组的索引,以访问正在预测的分支指令的预测逻辑。 通过使用预定的变换,可以在待预测的分支到达正常的预测阶段之前进行分支状态预测。

    Detection, recovery and prevention of bogus branches
    2.
    发明授权
    Detection, recovery and prevention of bogus branches 失效
    检测,恢复和预防假枝

    公开(公告)号:US07334115B1

    公开(公告)日:2008-02-19

    申请号:US09608512

    申请日:2000-06-30

    IPC分类号: G06F9/30

    摘要: The present invention provides for a method and apparatus for the detection and prevention of and recovery from bogus branch predictions in a microprocessor. Micro-ops, decoded from a macro instruction, are stored in a decoded micro-op cache. Branch prediction logic determines whether a branch is bogus or not. If the branch taken was determined to be bogus, the present invention causes the micro-ops which descend from the original bogus branch micro-op instruction to be flagged and subsequently moved to the back-end of the processor for retirement. Further, the branch prediction logic (the branch prediction logic storage buffer) is updated as to what the actual direction of the branch was. In this manner then, bogus branches are detected, recovered from and further prevented.

    摘要翻译: 本发明提供了一种用于检测和预防微处理器中的虚假分支预测和恢复的方法和装置。 从宏指令解码的微操作被存储在解码的微操作高速缓存中。 分支预测逻辑确定分支是否为假。 如果所采取的分支被确定为假的,则本发明使得从原始虚假分支微操作指令下降的微操作被标记并随后移动到处理器的后端退休。 此外,分支预测逻辑(分支预测逻辑存储缓冲器)被更新为分支的实际方向是什么。 以这种方式,则检测到虚假的分支,从中进一步预防和恢复。