发明名称 Method and apparatus for predicting and handling resolving return from subroutine instructions in a computer processor
摘要 A method and apparatus for resolving Return From Subroutine instructions in a computer processor are disclosed. The method and apparatus resolve Return From Subroutine instructions in four stages. A first stage predicts Call Subroutine instructions and Return From Subroutine instructions within the instruction stream. The first stage stores a return address in a return register when a Call Subroutine instruction is predicted. The first stage predicts a return to the return address in the return register when a Return From Subroutine instruction is predicted. A second stage decodes each Call Subroutine and Return From Subroutine instruction in order to maintain a Return Stack Buffer that stores a stack of return addresses. Each time the second stage decodes a Call Subroutine instruction, a return address is pushed onto the Return Stack Buffer. Correspondingly, each time the second stage decodes a Return From Subroutine instruction, a return address is popped off of the Return Stack Buffer. The second stage verifies predictions made by the first stage and predicts return addresses for Return From Subroutine instructions that were not predicted by the first stage. A third stage executes Return From Subroutine instructions such that the predictions are verified. Finally, a fourth stage retires Return From Subroutine instructions and ensures that no instructions fetch after a mispredicted return address are committed into permanent state.
申请公布号 US5768576(A) 申请公布日期 1998.06.16
申请号 US19960739743 申请日期 1996.10.29
申请人 INTEL CORPORATION 发明人 HOYT, BRADLEY D.;HINTON, GLENN J.;PAPWORTH, DAVID B.;GUPTA, ASHWANI KUMAR;FETTERMAN, MICHAEL ALAN;NATARAJAN, SUBRAMANIAN;SHENOY, SUNIL;D'SA, REYNOLD V.
分类号 G06F9/38;G06F9/42;(IPC1-7):G06F9/42 主分类号 G06F9/38
代理机构 代理人
主权项
地址