摘要 |
PROBLEM TO BE SOLVED: To provide an apparatus for emulating branch prediction behavior of an explicit subroutine call.SOLUTION: An apparatus comprises first input which is configured to receive an instruction address and second input. The second input is configured to receive pre-decode information which describes the instruction address as being related to an implicit subroutine call to a subroutine. In response to the pre-decode information, the apparatus also comprises an adder configured to add a constant to the instruction address defining a return address. Thereby, the apparatus stores the return address into an explicit subroutine resource to facilitate subsequent branch prediction of a return call instruction. |