首页> 外国专利> Reducing data hazards by counting the number of long-latency instructions in the thread still being processed before running the hazard instruction

Reducing data hazards by counting the number of long-latency instructions in the thread still being processed before running the hazard instruction

机译:在运行危险指令之前,通过计算仍在处理的线程中的长等待时间指令的数量来减少数据危险

摘要

Disclosed is a method for processing threads in a pipelined processor. The threads are a series of instructions, some are short-latency instructions and some are long-latency instructions and at least one is a hazard instruction, ie can cause a data hazard such as read after write or write after read. The hazard being cased by a preceding instruction needing to be processed before the hazard instruction is processed. The method has the steps of: a) before processing a long-latency instruction, adding one to a counter associated with the thread; b) after a long-latency instruction has been processed, taking one from the counter, and; c) before processing a hazard instruction, checking the value of the counter associated with the thread. If the counter is zero, the hazard instruction is processed or if the counter is non-zero, the hazard instruction is paused until later. For systems with multiple threads each thread may have its own counter. The counters may be periodically checked and if zero the thread and the hazard instruction processing is resumed.
机译:公开了一种用于在流水线处理器中处理线程的方法。线程是一系列指令,一些是短等待时间指令,一些是长等待时间指令,至少一个是危险指令,即可能导致数据危险,例如写后读或读后写。在处理危险指令之前,需要处理之前的指令所涉及的危险。该方法具有以下步骤:a)在处理长等待时间指令之前,将一个添加到与线程相关联的计数器上; b)在处理了长等待时间指令之后,从计数器中取出一条指令;以及c)在处理危险指令之前,请检查与线程关联的计数器的值。如果计数器为零,则处理危险指令;如果计数器为非零,则暂停危险指令,直到稍后。对于具有多个线程的系统,每个线程可以具有自己的计数器。可以定期检查计数器,如果计数器为零,则恢复线程和危险指令处理。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号