#ifdef STATISTICS /* * $Id$ * * [ Description ] * */ #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h" namespace morpheo { namespace behavioural { namespace stage_1_ifetch { namespace predictor { namespace meta_predictor { namespace two_level_branch_predictor { string Two_Level_Branch_Predictor::statistics (uint32_t depth) { log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","Begin"); string stat_component_Branch_History_Table = (_param._have_bht==false)?"":component_Branch_History_Table ->statistics(depth+1); string stat_component_Pattern_History_Table = (_param._have_pht==false)?"":component_Pattern_History_Table ->statistics(depth+1); string txt = _stat->print(depth, stat_component_Branch_History_Table + stat_component_Pattern_History_Table + component_Two_Level_Branch_Predictor_Glue->statistics(depth+1) ); log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","End"); return txt; }; }; // end namespace two_level_branch_predictor }; // end namespace meta_predictor }; // end namespace predictor }; // end namespace stage_1_ifetch }; // end namespace behavioural }; // end namespace morpheo #endif