Instruction branch prediction method
The invention provides an instruction branch prediction method. The method comprises the steps that: a prediction table is acquired, the prediction table comprises a mark field, and the mark field isused for predicting whether a corresponding instruction is a compression instruction or not and skipp...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides an instruction branch prediction method. The method comprises the steps that: a prediction table is acquired, the prediction table comprises a mark field, and the mark field isused for predicting whether a corresponding instruction is a compression instruction or not and skipping in a non-alignment mode. According to the instruction branch prediction method, the instructiontype corresponding to the index and how to skip the instruction are marked by adding the marking field into the prediction table, so that whether the current instruction is a compressed instruction or not can be distinguished, non-aligned skip is carried out, skip of the instruction can be accurately predicted, and the working efficiency of a processor is improved.
本发明提供一种指令分支预测方法,包括:获取预测表,所述预测表包括标记字段,所述标记字段用于预测对应指令是否为压缩指令且非对齐跳转。本发明指令分支预测方法,通过在预测表中加入一个标记字段来标记该索引对应的指令类型以及该指令是如何跳转的,从而能够区分当前指令是否为压缩指令且进行非对齐跳转,从而能够准确预测指令的跳转,提高处理器的工作效率。 |
---|