The invention discloses an SPARC V8
system structure based classified type mixed
branch prediction system. Firstly, a
branch target buffer is queried according to PC values of instructions at an instruction fetching stage to obtain
branch instruction types; the branch instructions are dispatched to respective prediction modules; a
return address stack (RAS) with a dynamic configuration counter is used in skip branch prediction; a complementary prediction method is used in
indirect branch prediction; a tag recording
correctness of previous branch prediction in a
conditional branch target buffer (CBTB) adopts a partial skip three-state conversion
algorithm in
conditional branch prediction; decoding result information of the instructions are recorded in a prediction information table (PIT) at a decoding stage; a judgment is made at an execution stage; if a prediction result of the branch instructions is that the skip occurs, the result judgment is made by using a skip prediction result
arbiter Arbiter_T; and if the prediction result of the branch instructions is that the skip does not occur, the result judgment is made by using a non-skip prediction result
arbiter Arbiter_N. Therefore, the instruction
delay influence of the branch instructions on an
assembly line is eliminated and the execution efficiency of a processor is improved.