发明名称 Reverse TLB for providing branch target address in a microprocessor having a physically-tagged cache
摘要 A microprocessor employs a branch prediction unit including a branch prediction storage which stores the index portion of branch target addresses and an instruction cache which is virtually indexed and physically tagged. The branch target index (if predicted-taken, or the sequential index if predicted not-taken) is provided as the index to the instruction cache. The selected physical tag is provided to a reverse translation lookaside buffer (TLB) which translates the physical tag to a virtual page number. Concatenating the virtual page number to the virtual index from the instruction cache (and the offset portion, generated from the branch prediction) results in the branch target address being generated. In one embodiment, the process of reading an index from the branch prediction storage, accessing the instruction cache, selecting the physical tag, and reverse translating the physical tag to achieve a virtual page number may require more than a clock cycle to complete. Such an embodiment may employ a current page register which stores the most recently translated virtual page number and the corresponding real page number. The branch prediction unit predicts that each fetch address will continue to reside in the current page and uses the virtual page number from the current page to form the branch target address. The physical tag from the fetched cache line is compared to the corresponding real page number to verify that the fetch address is actually still within the current page. When a mismatch is detected between the corresponding real page number and the physical tag from the fetched cache line, the branch target address is corrected with the linear page number provided by the reverse TLB and the current page register is updated.
申请公布号 US6079003(A) 申请公布日期 2000.06.20
申请号 US19970974972 申请日期 1997.11.20
申请人 ADVANCED MICRO DEVICES, INC. 发明人 WITT, DAVID B.;TRAN, THANG M.
分类号 G06F9/30;G06F9/38;G06F12/10;(IPC1-7):G06F12/00 主分类号 G06F9/30
代理机构 代理人
主权项
地址