发明名称 Apparatus and method for selectively overriding return stack prediction in response to detection of non-standard return sequence
摘要 A microprocessor for predicting a target address of a return instruction is disclosed. The microprocessor includes a BTAC and a return stack that each makes a prediction of the target address. Typically the return stack is more accurate. However, if the return stack mispredicts, update logic sets an override flag associated with the return instruction in the BTAC. The next time the return instruction is encountered, if the override flag is set, branch control logic branches the microprocessor to the BTAC prediction. Otherwise, the microprocessor branches to the return stack prediction. If the BTAC mispredicts, then the update logic clears the override flag. In one embodiment, the return stack predicts in response to decode of the return instruction. In another embodiment, the return stack predicts in response to the BTAC predicting the return instruction is present in an instruction cache line. Another embodiment includes a second, BTAC-based return stack.
申请公布号 US7237098(B2) 申请公布日期 2007.06.26
申请号 US20030679830 申请日期 2003.10.06
申请人 IP-FIRST, LLC 发明人 HENRY G. GLENN;MCDONALD THOMAS
分类号 G06F9/40;G06F9/38;G06F9/44 主分类号 G06F9/40
代理机构 代理人
主权项
地址