首页> 外国专利> Superscalar microprocessor stack structure for judging validity of predicted subroutine return addresses

Superscalar microprocessor stack structure for judging validity of predicted subroutine return addresses

机译:超标量微处理器堆栈结构,用于判断预测的子例程返回地址的有效性

摘要

A return stack is described which stores return addresses associated with subroutine call instructions along with an ESP register value associated with the subroutine call instructions in a stack-type structure. During clock cycles that a return instruction is detected by a decode unit, the decode unit forwards an ESP register value associated with the return instruction to the return stack along with an indication of the return instruction detection. The return stack compares the forwarded ESP register value to the ESP register value stored on the top of the stack. If the values compare equal, then the value stored on the top of the stack may be the correct prediction address for this return instruction and is popped from the top of the stack. When the return stack detects an inequality between the two aforementioned ESP values, the return stack does not pop the top of the stack. The return stack may achieve a correct prediction rate substantially similar to the correct prediction rate in the absence of fake return instructions, even if fake return instructions are encountered.
机译:描述了一种返回堆栈,该堆栈将与子例程调用指令相关联的返回地址以及与子例程调用指令相关联的ESP寄存器值存储在堆栈类型的结构中。在由解码单元检测到返回指令的时钟周期中,解码单元将与该返回指令相关联的ESP寄存器值与该返回指令检测的指示一起转发至返回堆栈。返回堆栈将转发的ESP寄存器值与存储在堆栈顶部的ESP寄存器值进行比较。如果这些值比较相等,则存储在堆栈顶部的值可能是此返回指令的正确预测地址,并从堆栈顶部弹出。当返回堆栈检测到上述两个ESP值之间的不相等时,返回堆栈不会弹出堆栈的顶部。即使没有伪造的返回指令,即使没有伪造的返回指令,返回堆栈也可以实现与正确的预测率基本相似的正确的预测率。

著录项

  • 公开/公告号US5968169A

    专利类型

  • 公开/公告日1999-10-19

    原文格式PDF

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

    申请/专利号US19970937849

  • 发明设计人 JAMES K. PICKETT;

    申请日1997-09-25

  • 分类号G06F9/42;

  • 国家 US

  • 入库时间 2022-08-22 02:07:03

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号