The present invention discloses an
indirect branch predictor based on global history classification and a prediction method, belonging to the field of
branch predictor design for processors. The
indirect branch predictor based on global history classification includes: a single target address prediction module, a multi-target address prediction module, a target address arbitration module, and a
multiplexing module; the present invention can respectively utilize the prediction advantages of the instruction path history and the direction history, select more reasonable historical information for prediction according to the confidence level, thereby further improving the prediction accuracy of the
indirect branch predictor; moreover, the predictor adopted in the present invention can be implemented by using different indirect
branch predictors according to actual design requirements, so as to meet the performance and area requirements of various processors. Therefore, the present invention can reasonably utilize hardware resources and has better applicability in the design of different types of processors.