发明申请
US20050132173A1 Method and apparatus for allocating entries in a branch target buffer
有权
用于在分支目标缓冲器中分配条目的方法和装置
- 专利标题: Method and apparatus for allocating entries in a branch target buffer
- 专利标题(中): 用于在分支目标缓冲器中分配条目的方法和装置
-
申请号: US10736393申请日: 2003-12-15
-
公开(公告)号: US20050132173A1公开(公告)日: 2005-06-16
- 发明人: William Moyer , Jeffrey Scott
- 申请人: William Moyer , Jeffrey Scott
- 主分类号: G06F9/00
- IPC分类号: G06F9/00 ; G06F9/38 ; G06F15/00
摘要:
A method (200) and apparatus (100) for allocating entries in a branch target buffer (BTB) (144) in a pipelined data processing system includes: sequentially fetching instructions; determining that one of the instructions is a branch instruction (210, 215, 220); decoding the branch instruction to determine a branch target address; determining if the branch target address can be obtained without causing a stall condition in the pipelined data processing system; and selectively allocating an entry of the BTB (144) based on the determination. In one embodiment, an entry of the BTB (144) is allocated if the branch instruction is not loaded into a predetermined slot (S1) of a prefetch buffer (102) and no other stall condition will occur. The method (200) and apparatus (100) combine the advantages of using a BTB (144) and branch lookahead to reduce stall conditions in the data processing system.
公开/授权文献
信息查询