1. A method in a branch prediction unit for prediction of a next taken branch instruction in a processing unit comprising the branch prediction unit, the method comprises: receiving a program counter corresponding to the address of an instruction; determining a search program counter based on the received program counter; by means of the search program counter, finding in a pattern history memory at least one branch indicator configured to indicate at least one predicted taken branch instruction that is comprised in an execution path; selecting a first found branch indicator as an indication of a first predicted taken branch instruction in an execution path; by means of the first found branch indicator, retrieving from the pattern history memory, a branch source address of the first predicted taken branch instruction; and when the retrieved branch source address is the branch source address nearest to the search program counter, indexing a branch target buffer by means of the retrieved branch source address; outputting a branch target retrieved from the branch target buffer as a next program counter; and stopping prediction of a next taken branch instruction.