[2] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: Two_Level_Branch_Predictor_statistics.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[48] | 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h" |
---|
[2] | 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
[48] | 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace prediction_unit { |
---|
| 18 | namespace direction { |
---|
| 19 | |
---|
[2] | 20 | namespace meta_predictor { |
---|
| 21 | namespace two_level_branch_predictor { |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | string Two_Level_Branch_Predictor::statistics (uint32_t depth) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","Begin"); |
---|
| 27 | |
---|
[3] | 28 | string stat_component_Branch_History_Table = (_param._have_bht==false)?"":component_Branch_History_Table ->statistics(depth+1); |
---|
| 29 | string stat_component_Pattern_History_Table = (_param._have_pht==false)?"":component_Pattern_History_Table ->statistics(depth+1); |
---|
| 30 | |
---|
[2] | 31 | string txt = _stat->print(depth, |
---|
[3] | 32 | stat_component_Branch_History_Table + |
---|
| 33 | stat_component_Pattern_History_Table + |
---|
[2] | 34 | component_Two_Level_Branch_Predictor_Glue->statistics(depth+1) |
---|
| 35 | ); |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","End"); |
---|
| 38 | |
---|
| 39 | return txt; |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | }; // end namespace two_level_branch_predictor |
---|
| 43 | }; // end namespace meta_predictor |
---|
| 44 | |
---|
[48] | 45 | }; // end namespace core |
---|
| 46 | }; // end namespace multi_front_end |
---|
| 47 | }; // end namespace front_end |
---|
| 48 | }; // end namespace prediction_unit |
---|
| 49 | }; // end namespace direction |
---|
| 50 | |
---|
| 51 | |
---|
[2] | 52 | }; // end namespace behavioural |
---|
| 53 | }; // end namespace morpheo |
---|
| 54 | #endif |
---|