首页> 外国专利> FETCHING ALL OR PORTION OF INSTRUCTIONS IN MEMORY LINE UP TO BRANCH INSTRUCTION BASED ON BRANCH PREDICTION AND SIZE INDICATOR STORED IN BRANCH TARGET BUFFER INDEXED BY FETCH ADDRESS

FETCHING ALL OR PORTION OF INSTRUCTIONS IN MEMORY LINE UP TO BRANCH INSTRUCTION BASED ON BRANCH PREDICTION AND SIZE INDICATOR STORED IN BRANCH TARGET BUFFER INDEXED BY FETCH ADDRESS

机译:基于分页预测和存储在分页地址指示的分页目标缓冲区中的大小指示符,获取到全部或部分存储指令,直至分行指令

摘要

The invention provides a method and apparatus for branch prediction in a processor. A fetch-block branch target buffer is used in an early stage of pipeline processing before the instruction is decoded, which stores information about a control transfer instruction for a “block” of instruction memory. The block of instruction memory is represented by a block entry in the fetch-block branch target buffer. The block entry represents one recorded control-transfer instruction (such as a branch instruction) and a set of sequentially preceding instructions, up to a fixed maximum length N. Indexing into the fetch-block branch target buffer yields an answer whether the block entry represents memory that contains a previously executed a control-transfer instruction, a length value representing the amount of memory that contains the instructions represented by the block, and an indicator for the type of control-transfer instruction that terminates the block, its target and outcome. Both the decode and execution pipelines include correction capabilities for modifying the block branch target buffer dependent on the results of the instruction decode and execution and can include a mechanism to correct malformed instructions.
机译:本发明提供了一种用于处理器中的分支预测的方法和装置。在对指令进行解码之前,在流水线处理的早期阶段使用提取块分支目标缓冲区,该缓冲区存储有关用于指令存储器“块”的控制传输指令的信息。指令存储器块由访存块分支目标缓冲区中的块条目表示。块条目代表一条记录的控制转移指令(例如分支指令)和一组顺序的先前指令,最大固定长度为N。索引到访存块分支目标缓冲区会产生一个答案,即该块条目是否代表包含一个先前执行的控制传递指令的存储器,一个长度值(代表包含该块代表的指令的内存量)以及指示终止该块,其目标和结果的控制传递指令的类型的指示器。解码和执行流水线都包括用于根据指令解码和执行的结果来修改块分支目标缓冲区的校正功能,并且可以包括校正格式错误的指令的机制。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号