首页> 外国专利> Method and apparatus for avoiding write-after-write hazards in an execute-ahead processor

Method and apparatus for avoiding write-after-write hazards in an execute-ahead processor

机译:在预执行处理器中避免写后写危害的方法和装置

摘要

One embodiment of the present invention provides a system that avoids write-after-write (WAW) hazards while speculatively executing instructions. The system starts in a normal execution mode, wherein the system issues instructions for execution in program order. Upon encountering an unresolved data dependency during execution of an instruction, the system generates a checkpoint, defers the instruction, and executes subsequent instructions in an execute-ahead mode. During this execute-ahead mode, instructions that cannot be executed because of unresolved data dependencies are deferred, and other non-deferred instructions are executed in program order. If an unresolved data dependency is resolved during the execute-ahead mode, the system moves into a deferred mode wherein the system executes deferred instructions. While executing a deferred instruction, if dependency information for an associated destination register indicates that a WAW hazard potentially exists with a following non-deferred instruction, the system executes the deferred instruction to produce a result, and forwards the result to be used by subsequent instructions in a pipeline and/or deferred queue for the processor. The system does so without committing the result to the architectural state of the destination register. In this way, the system makes the result available to the subsequent instructions without overwriting a result produced by the following non-deferred instruction, thereby avoiding a WAW hazard.
机译:本发明的一个实施例提供了一种在推测地执行指令时避免写后写(WAW)危害的系统。系统以正常执行模式启动,其中系统发布指令以程序顺序执行。在执行指令期间遇到未解决的数据依赖性时,系统会生成一个检查点,推迟该指令并以预执行模式执行后续指令。在此预执行模式下,由于未解决的数据依赖性而无法执行的指令将被延迟,其他未延迟的指令将以程序顺序执行。如果在预执行模式期间解决了未解决的数据依赖性,则系统进入延迟模式,在该模式下,系统执行延迟的指令。在执行延期指令时,如果关联目标寄存器的依赖性信息表明后续的非延期指令可能存在WAW危险,则系统将执行延期指令以产生结果,并转发结果以供后续指令使用在处理器的流水线和/或延迟队列中。系统这样做时不会将结果提交给目标寄存器的体系结构状态。这样,系统使结果可用于后续指令,而不会覆盖由随后的非延迟指令产生的结果,从而避免了WAW危害。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号