Embodiments of the present specification relate to the field of computers, and provide a processor
branch prediction method, device, equipment, storage medium and product, comprising: in a program execution process, using a fixed-capacity global history register to
record the jump direction of an executed
branch instruction, to obtain a global history register value; in response to a function call instruction in a program execution flow, generating function call information corresponding to the function call instruction; at a program point where
branch prediction is needed, obtaining a plurality of function call information corresponding to the executed function call instruction and generating a function call history register value; concatenating the function call history register value and the global history register value to obtain enhanced history information; and using a
branch predictor to perform processor branch direction prediction based on the enhanced history information. Through the embodiments of the present specification, the length of the used history information can be increased on the basis of using lower hardware overhead, thereby improving the accuracy of processor branch prediction.