首页> 外国专利> Branch predictor that selects between predictions based on stored prediction selector and branch predictor index generation

Branch predictor that selects between predictions based on stored prediction selector and branch predictor index generation

机译:基于存储的预测选择器和分支预测器索引生成在预测之间进行选择的分支预测器

摘要

An indirect branch predictor includes a buffer storing branch target addresses corresponding to previously executed indirect branch instructions. The buffer is indexed with an index derived from history information corresponding to previously predicted indirect branch instructions and from the PC of the particular indirect branch instruction being predicted. In one embodiment, the buffer may be tagless and/or direct mapped. In various embodiments, the indirect branch target predictor may generate the index to the buffer using one or more techniques to improve the accuracy of the prediction: (i) offsetting the history information from the various previously predicted indirect branch instructions; (ii) weighting the history information based on the age of the previously predicted indirect branch instructions; and/or (iii) reversing the bit order of the PC of the particular indirect branch instruction being predicted. In one embodiment, the indirect branch predictor may include a second buffer indexed by a portion of the PC of the particular indirect branch instruction being predicted. The second buffer may store target addresses corresponding to previously executed indirect branch instructions and prediction selection information which may be used to select a target address prediction from one of the buffer and the second buffer. The second buffer may accurately predict indirect branch instructions whose target addresses are relatively fixed, using the buffer indexed by history information to predict the indirect branch instructions having more frequently changing indirect targets.
机译:间接分支预测器包括缓冲器,该缓冲器存储与先前执行的间接分支指令相对应的分支目标地址。用从对应于先前预测的间接分支指令的历史信息以及从正被预测的特定间接分支指令的PC获得的索引来对缓冲器进行索引。在一实施例中,缓冲器可以是无标签的和/或直接映射的。在各种实施例中,间接分支目标预测器可以使用一种或多种技术来产生到缓冲器的索引以提高预测的准确性:(i)从各种先前预测的间接分支指令中偏移历史信息; (ii)根据先前预测的间接分支指令的使用期限对历史信息进行加权;和/或(iii)反转所预测的特定间接分支指令的PC的位顺序。在一个实施例中,间接分支预测器可以包括第二缓冲器,该第二缓冲器由正被预测的特定间接分支指令的PC的一部分索引。第二缓冲器可以存储与先前执行的间接分支指令相对应的目标地址以及可以用于从缓冲器和第二缓冲器之一中选择目标地址预测的预测选择信息。第二缓冲器可以使用由历史信息索引的缓冲器来准确预测目标地址相对固定的间接分支指令,以预测具有更频繁改变的间接目标的间接分支指令。

著录项

  • 公开/公告号US6721877B1

    专利类型

  • 公开/公告日2004-04-13

    原文格式PDF

  • 申请/专利权人 ADVANCED MICRO DEVICES INC.;

    申请/专利号US20000579245

  • 发明设计人 I-CHENG K. CHEN;FRANCIS M. MATUS;

    申请日2000-05-25

  • 分类号G06F90/00;

  • 国家 US

  • 入库时间 2022-08-21 23:14:31

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号