首页> 外国专利> Method and apparatus for predicting target addresses for return from subroutine instructions utilizing a return address cache

Method and apparatus for predicting target addresses for return from subroutine instructions utilizing a return address cache

机译:利用返回地址缓存从子例程指令中预测要返回的目标地址的方法和装置

摘要

A method of operation in a microprocessor is provided. A return address cache (RAC) is initialized. The RAC includes a portion to store predicted subroutine return addresses (PSRA) and first and second corresponding cache portions to store retired most recently updated (RMRU) ages of the PSRA and speculative most recently updated (SMRU) ages of the PSRA respectively. A PSRA is stored in a portion of the RAC corresponding to a first SMRU age and the SMRU ages are incremented responsive to prediction of a call instruction. A PSRA is read from a portion of the RAC corresponding to a second SMRU age and the SMRU ages are decremented responsive to prediction of a return instruction. Also a microprocessor that includes a return address cache (RAC) is provided. The RAC includes first and second tag portions to store retired most recently updated (RMRU) ages and speculative most recently updated (SMRU) ages respectively. The RAC also includes a data portion to store predicted subroutine addresses (PSRA). The RAC also includes a control logic to cause the RMRU ages to be copied onto corresponding SMRU ages responsive to detection of a branch misprediction.
机译:提供了一种在微处理器中的操作方法。返回地址缓存(RAC)被初始化。 RAC包括用于存储预测子例程返回地址(PSRA)的部分以及分别用于存储PSRA的退休最近更新(RMRU)年龄和PSRA的推测最新更新(SMRU)年龄的第一和第二对应的缓存部分。 PSRA被存储在RAC的与第一SMRU年龄相对应的一部分中,并且SMRU年龄响应于呼叫指令的预测而增加。从RAC的与第二SMRU年龄相对应的一部分中读取PSRA,并且响应于对返回指令的预测来减小SMRU年龄。还提供了包括返回地址高速缓存(RAC)的微处理器。 RAC包括第一和第二标签部分,分别存储退休的最近更新(RMRU)年龄和推测的最新更新(SMRU)年龄。 RAC还包括一个数据部分,用于存储预测的子例程地址(PSRA)。 RAC还包括一个控制逻辑,以响应于分支预测错误的检测,将RMRU年龄复制到相应的SMRU年龄。

著录项

  • 公开/公告号US6170054B1

    专利类型

  • 公开/公告日2001-01-02

    原文格式PDF

  • 申请/专利权人 INTEL CORPORATION;

    申请/专利号US19980193323

  • 发明设计人 MITCHELL ALEXANDER POPLINGHER;

    申请日1998-11-16

  • 分类号G06F94/20;

  • 国家 US

  • 入库时间 2022-08-22 01:05:50

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号