Alibaba Group Holding Limited
INSTRUCTION PROCESSING APPARATUS, PROCESSOR, AND PROCESSING METHOD

Last updated:

Abstract:

Embodiments of the present disclosure provide an apparatus, comprising: an instruction fetching circuitry configured to: read a set of instructions, wherein the set of instructions comprises a speculative execution instruction and a speculative condition determination instruction, and the speculative execution instruction is an instruction to be executed according to a speculative condition of the speculative condition determination instruction; cache one or more instructions of the set of instructions in the instruction fetching circuitry; in response to a determination that the speculative condition determination instruction has been read, read the speculative execution instruction corresponding to the speculative condition of the speculative condition determination instruction, and in response to a determination that an execution result of the speculative condition determination instruction indicates that the speculative condition is incorrect, clear the one or more instructions cached in the instruction fetching circuitry; an instruction decoding circuitry configured to decode the set of instructions; an executing circuitry configured to execute the one or more instructions of the set of instructions, wherein the operation of executing the one or more instructions comprises executing the speculative condition determination instruction to obtain the execution result; and an instruction retiring circuitry configured to: cache in the instruction retiring circuitry the one or more instructions of the set of instructions executed by the executing circuitry; and in response to an instruction older than the speculative condition determination instruction being retired, instruct the executing circuitry to clear the instructions being executed in the executing circuitry and clear the instructions cached in the instruction retiring circuitry.

Status:
Application
Type:

Utility

Filling date:

24 Sep 2020

Issue date:

25 Mar 2021