首页> 外国专利> METHOD AND DEVICE FOR PREDICTING BRANCH INSTRUCTION BY MEANS OF HARDWARE-SOFTWARE COOPERATION

METHOD AND DEVICE FOR PREDICTING BRANCH INSTRUCTION BY MEANS OF HARDWARE-SOFTWARE COOPERATION

机译:硬件-软件合作手段预测分支指令的方法和装置

摘要

Disclosed is a method for predicting a branch instruction by means of hardware-software cooperation. The method is applied in a processor which includes a branch prediction register, a count register, and a branch predictor, and comprises: the branch prediction register acquires a bit sequence of a data length of operation data and sequentially outputs the bit sequence of the data length to the branch predictor; the count register counts the number of significant bits of the bit sequence of the data length and indicates, according to the number of significant bits of the bit sequence, the branch prediction register to sequentially output the bit sequence of the data length to the branch predictor; the branch predictor directs branch instruction prediction according to the bit sequence of the data length. Also disclosed is a device for predicting a branch instruction by means of hardware-software cooperation. By means of embodiments of the present invention, the accuracy of continuous branch prediction can be improved.
机译:公开了一种通过硬件-软件协作来预测分支指令的方法。该方法应用于包括分支预测寄存器,计数寄存器和分支预测器的处理器中,该处理器包括:分支预测寄存器获取操作数据的数据长度的位序列,并顺序输出该数据的位序列。分支预测变量的长度;计数寄存器对数据长度的位序列的有效位数进行计数,并根据该位序列的有效位数指示分支预测寄存器将数据长度的位序列依次输出至分支预测器;分支预测器根据数据长度的位序列指示分支指令预测。还公开了一种用于通过硬件-软件协作来预测分支指令的设备。通过本发明的实施例,可以提高连续分支预测的准确性。

著录项

  • 公开/公告号WO2018082344A1

    专利类型

  • 公开/公告日2018-05-11

    原文格式PDF

  • 申请/专利权人 HUAWEI TECHNOLOGIES CO. LTD.;

    申请/专利号WO2017CN93343

  • 发明设计人 SHI HUI;LU TENG;GU CHENGCHENG;

    申请日2017-07-18

  • 分类号G06F9/38;

  • 国家 WO

  • 入库时间 2022-08-21 12:44:17

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号